Skip to content

Updated:(deps): Bump bitfields from 1.0.3 to 2.0.8 in /src#125

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/src/bitfields-2.0.8
Open

Updated:(deps): Bump bitfields from 1.0.3 to 2.0.8 in /src#125
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/src/bitfields-2.0.8

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jun 2, 2026

Bumps bitfields from 1.0.3 to 2.0.8.

Release notes

Sourced from bitfields's releases.

v2.0.8

🚀 Major v2 Bitfields Release

New Features and Changes

  • Codebase rewrite from the ground up for more efficient code generation.
  • Bitflags support with #[bitflag(...)]
  • Array-backed bitfields using [u8; N] backing storage.
  • Optional heap-backed array storage via array_heap = true.
  • Array field types using [u8; N].
  • Byte-oriented conversions for array-backed bitfields:
    • from_bytes, into_bytes
    • slice-based conversions
    • endian-specific byte conversions
  • Much more complete bit operations API:
    • write bits/bytes
    • get/set single bits
    • clear operations
    • invert operations
    • toggle operations
    • range operations
  • Global Cargo feature flags to control macro generation defaults.
  • Dedicated bitflag config features like bitflag endianness/copy settings.
  • Richer documentation in README with concrete examples and use cases.
  • Documentation sync from README to macro lib.
  • Fixed unnecessary clippy lints in generated code.

Migration Guide: v1 → v2

This guide covers upgrading from bitfields v1 to v2.


Breaking Changes Summary

  • access = none is now access = na.
  • from_bits and into_bits generation are now controlled together by from_into_bits.
  • from = bool is now from_traits = bool.
  • set_bits = bool is now write_bit_ops = bool.
  • clear_bits = bool is now clear_bit_ops = bool.
  • neg = bool / neg_<field>() is replaced by the new invert bit-operations API.
  • to_builder = bool was removed.
  • bit_ops now defaults to true.
  • v2 may auto-generate Copy, Clone, Default, Debug, and From impls unless disabled.

1. Update Your Dependency

... (truncated)

Commits

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Jun 2, 2026

Labels

The following labels could not be found: dependencies, rust. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Bumps [bitfields](https://github.com/gregorygaines/bitfields-rs) from 1.0.3 to 2.0.8.
- [Release notes](https://github.com/gregorygaines/bitfields-rs/releases)
- [Commits](https://github.com/gregorygaines/bitfields-rs/commits)

---
updated-dependencies:
- dependency-name: bitfields
  dependency-version: 2.0.8
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/cargo/src/bitfields-2.0.8 branch from 6579859 to a3128db Compare June 3, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants