Skip to content

Bump bitfield-struct from 0.8.0 to 0.13.0 - #81

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/bitfield-struct-0.13.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/bitfield-struct-0.13.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 31, 2026

Copy link
Copy Markdown
Contributor

Bumps bitfield-struct from 0.8.0 to 0.13.0.

Release notes

Sourced from bitfield-struct's releases.

0.13.0

This release adds support for const generics.

Bitfields can now use const generics directly. Just declare them on the struct as usual:

use bitfield_struct::bitfield;
#[bitfield(u16)]
#[derive(PartialEq, Eq)]
struct Packet<const VERSION: u8> {
#[bits(4)]
tag: u8,
#[bits(12)]
payload: u16,
}

0.12.1

Support #[cfg(...)] on bit enum variants

0.12.0

This release contains a few fixes for #64 and #68, as well as optional support for the binrw traits #65 from @​Maccraft123.

Additionally, it introduces a small new macro for generating the from_bits/into_bits function for enums:

use bitfield_struct::bitenum;
#[bitenum]
#[repr(u8)]
#[derive(Debug, PartialEq, Eq)]
enum MyEnum {
#[fallback]
A = 0,
B = 1,
C = 2,
}
assert_eq!(MyEnum::from_bits(1), MyEnum::B);
assert_eq!(MyEnum::C.into_bits(), 2);
#[bitfield(u8)]
struct Test {
#[bits(8)]
value: MyEnum,
}

Thanks to @​MolotovCherry and @​xTachyon for reporting these issues.

... (truncated)

Commits

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

Bumps [bitfield-struct](https://github.com/wrenger/bitfield-struct-rs) from 0.8.0 to 0.13.0.
- [Release notes](https://github.com/wrenger/bitfield-struct-rs/releases)
- [Commits](wrenger/bitfield-struct-rs@0.8.0...0.13.0)

---
updated-dependencies:
- dependency-name: bitfield-struct
  dependency-version: 0.13.0
  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 Aug 31, 2026
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.

0 participants