Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Mar 20, 2023

Bumps scale-decode from 0.4.0 to 0.5.0.

Release notes

Sourced from scale-decode's releases.

v0.5.0

0.5.0

This release shifts scale-decode to being a mirror of a new scale-encode crate, and:

  • Adds a new IntoVisitor trait that types can implement if there is a Visitor which can be used to decode into them.
  • Adds a new DecodeAsType trait to mirror the EncodeAsType trait there; any type that implements IntoVisitor automatically implements DecodeAsType.
  • Adds a new DecodeAsFields trait to mirror EncodeAsFields, implemented for tuple and struct types.
  • Moves the Visitor trait into a sub module and re-works the interface to allow zero copy decoding, allow more concise implementations of it, and provide a fallback escape hatch to allow for more arbitrary DecodeAsType implementations from it.
  • Implements DecodeAsType (via Visitor and IntoVisitor impls) and DecodeAsFields on common types.
  • Adds a DecodeAsType derive macro to auto-generate impls on custom struct and enum types.

Any Visitor impls will need to be updated to use the refined Visitor trait; this should be fairly mechanical (check out the examples and follow the compiler guidance to do this). Otherwise, the rest of the changes are additive and just make it easier to implement this trait and obtain a DecodeAsType implementation, if desired.

Changed

  • Add DecodeAsType backed by Visitor impls for standard types. (#11)
Changelog

Sourced from scale-decode's changelog.

0.5.0

This release shifts scale-decode to being a mirror of a new scale-encode crate, and:

  • Adds a new IntoVisitor trait that types can implement if there is a Visitor which can be used to decode into them.
  • Adds a new DecodeAsType trait to mirror the EncodeAsType trait there; any type that implements IntoVisitor automatically implements DecodeAsType.
  • Adds a new DecodeAsFields trait to mirror EncodeAsFields, implemented for tuple and struct types.
  • Moves the Visitor trait into a sub module and re-works the interface to allow zero copy decoding, allow more concise implementations of it, and provide a fallback escape hatch to allow for more arbitrary DecodeAsType implementations from it.
  • Implements DecodeAsType (via Visitor and IntoVisitor impls) and DecodeAsFields on common types.
  • Adds a DecodeAsType derive macro to auto-generate impls on custom struct and enum types.

Any Visitor impls will need to be updated to use the refined Visitor trait; this should be fairly mechanical (check out the examples and follow the compiler guidance to do this). Otherwise, the rest of the changes are additive and just make it easier to implement this trait and obtain a DecodeAsType implementation, if desired.

Changed

  • Add DecodeAsType backed by Visitor impls for standard types. (#11)
Commits
  • c0b614b Update changelog and prep for 0.5.0 release (#14)
  • 69ffb61 Bump Swatinem/rust-cache from 2.0.1 to 2.2.1 (#12)
  • 4d40391 Add DecodeAsType backed by Visitor impls for standard types. (#11)
  • f3b7276 match hash and version
  • 9871fac Bump Swatinem/rust-cache from 1.3.0 to 2.0.1
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [scale-decode](https://github.com/paritytech/scale-decode) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/paritytech/scale-decode/releases)
- [Changelog](https://github.com/paritytech/scale-decode/blob/main/CHANGELOG.md)
- [Commits](paritytech/scale-decode@v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: scale-decode
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Mar 20, 2023
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github May 29, 2023

Superseded by #43.

@dependabot dependabot bot closed this May 29, 2023
@dependabot dependabot bot deleted the dependabot/cargo/scale-decode-0.5.0 branch May 29, 2023 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant