Skip to content

Upgrading bitflags 1 to 2

Breaking1.3.2 → 2.13.2Breaking3Platform1New15Changed7Fixed8Other26

Fetching 33 releases from GitHub…18 / 33
BreakingUpgrade verdict

3 breaking changes and a platform requirement change.

  • Remove old unused_tuple_struct_fields lint.
  • Delete use of local_inner_macros.
  • The way you ask bitflags to generate a name for each flag has changed to a new attribute form.
  • Remove rustc internal crate feature.
4 items need code or config changes

Requires Rust 1.56.0 from 2.0.0 (none stated before).

Breaking3
Remove old unused_tuple_struct_fields lint.
unused_tuple_struct_fields
Delete use of local_inner_macros.
local_inner_macros
Reworks the #[flag_name] feature and re-stabilizes it as #[bitflags(flag_name)].
#[flag_name]#[bitflags(flag_name)]
Platform1
Remove rustc internal crate feature.