Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update binary-layout requirement from 3.2.0 to 4.0.1 #401

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 11, 2024

Updates the requirements on binary-layout to permit the latest version.

Release notes

Sourced from binary-layout's releases.

4.0.1

Fix broken links in README

Changelog

Sourced from binary-layout's changelog.

4.0.1

  • Fix broken links in README

4.0.0

This release adds supports for types that can throw errors when reading or writing.

New primitive types supported:

  • std::num::NonZeroXXX types
  • bool as u8 (only 0 and 1 are valid representations, others will throw errors when read)
  • char as u32 (invalid unicode will throw errors when read)

When reading any of those types, the read() function will not be available and instead there will be a try_read() function.

The LayoutAs trait changed and if you're using that to define custom data types, then you now need to implement try_read / try_write instead of read / write. If reading and/or writing your type cannot fail, you can set the corresponding error type to std::convert::Infallible. That will ensure that your type will have the read() / write() functions available on your layout fields. For any other error types, you will have to access the fields using calls to try_read() / try_write().

Backwards compatibility: Most code should remain backwards compatible, but there are a few scenarios that require you to change your code:

  • Updated MSRV to 1.59
  • If you did not use use binary_layout::prelude::* but instead imported the binary_layout traits manually, then you may have to add an import to FieldReadExt and FieldWriteExt because that is where the read() and write() methods that were previously on FieldCopyAccess moved to.
  • Types implementing LayoutAs now need to be Sized.
  • The LayoutAs trait changed. You now need to implement try_read and try_write instead of read and write and define the corresponding error types.
  • Renamed define_layout! macro to binary_layout!. For now, define_layout! still works but will show a deprecation warning and it will be removed in a future version.

3.3.0

  • Reduce minimal dependency version requirements to what's actually needed and add a CI task ensuring that those versions are sufficient

3.2.0

  • Add NativeEndian as an option

3.1.4

  • Fix compiler warnings issued by newer version of rust

3.1.3

  • Specify MSRV in Cargo.toml
  • Improve CI setup

3.1.2

  • Fixed clippy warnings

... (truncated)

Commits
  • 322bdd7 Release 4.0.1
  • 688180a Improve README
  • cc5d52e Fix broken readme links
  • d0482b8 Mark 4.0.0 as released
  • c9efcff Improve changelog
  • 99e5b70 Improve documentation
  • c320c2a Bump version to 4.0.0
  • d0f7815 Add tests for LayoutAs that fails either reading, or writing, or both
  • bb3956b Renamed define_layout! macro to binary_layout!. For now, define_layout!...
  • e40b40d Added support for the bool as u8 and char as u32 data type
  • Additional commits viewable in compare view

You can trigger a rebase of this PR 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 11, 2024
Updates the requirements on [binary-layout](https://github.com/smessmer/binary-layout) to permit the latest version.
- [Release notes](https://github.com/smessmer/binary-layout/releases)
- [Changelog](https://github.com/smessmer/binary-layout/blob/master/ChangeLog.txt)
- [Commits](smessmer/binary-layout@3.2.0...4.0.1)

---
updated-dependencies:
- dependency-name: binary-layout
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/binary-layout-4.0.1 branch from 6f2e03c to 1c4af85 Compare March 9, 2024 11:10
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 15, 2024

Superseded by #435.

@dependabot dependabot bot closed this Apr 15, 2024
@dependabot dependabot bot deleted the dependabot/cargo/binary-layout-4.0.1 branch April 15, 2024 16:47
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants