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.2 #435

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 15, 2024

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

Release notes

Sourced from binary-layout's releases.

4.0.2

Changelog

Sourced from binary-layout's changelog.

4.0.2

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

... (truncated)

Commits
  • 0462686 Mark 4.0.2 as released
  • b42b36f Mention codecov fix in changelog
  • 23674d3 Update codecov CI job to fix it
  • 69943bf Fixing no-std support
  • 63c4470 Added no-std test without minimal_versions to ci
  • 3cb2c6d Added no-std test to ci
  • 991f5e1 Add CI jobs checking this crate for SemVer-breaking API changes
  • 322bdd7 Release 4.0.1
  • 688180a Improve README
  • cc5d52e Fix broken readme links
  • 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.

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.2)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 15, 2024
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
Status: 📋 Backlog
Development

Successfully merging this pull request may close these issues.

0 participants