bitflags breaking changes

cargo

41 curated breaking changes across major versions of bitflags. Use this as a migration checklist before bumping dependencies.

41
changes
Breaking changes by transition
  • 2.0.0-rc.1 \u2192 2.0.0-rc.2breaking

    Add missing "if" to contains doc-comment in traits.rs by @rusty-snake in https://github.com/bitflags/bitflags/pull/291

  • 2.0.0-rc.1 \u2192 2.0.0-rc.2breaking

    Forbid unsafe_code by @fintelia in https://github.com/bitflags/bitflags/pull/294

  • 2.0.0-rc.1 \u2192 2.0.0-rc.2breaking

    serde: enable no-std support by @nim65s in https://github.com/bitflags/bitflags/pull/296

  • 2.0.0-rc.1 \u2192 2.0.0-rc.2breaking

    Add a parser for flags formatted as bar-separated-values by @KodrAus in https://github.com/bitflags/bitflags/pull/297

  • 2.0.0-rc.1 \u2192 2.0.0-rc.2breaking

    @rusty-snake made their first contribution in https://github.com/bitflags/bitflags/pull/291

  • 2.0.0-rc.1 \u2192 2.0.0-rc.2breaking

    @fintelia made their first contribution in https://github.com/bitflags/bitflags/pull/294

  • 2.0.0-rc.1 \u2192 2.0.0-rc.2breaking

    @nim65s made their first contribution in https://github.com/bitflags/bitflags/pull/296

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Use SPDX license format by @atouchet in https://github.com/bitflags/bitflags/pull/272

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    serde tests fail in CI by @arturoc in https://github.com/bitflags/bitflags/pull/277

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Fix beta test output by @KodrAus in https://github.com/bitflags/bitflags/pull/279

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Prepare for 2.0.0-rc.2 release by @KodrAus in https://github.com/bitflags/bitflags/pull/299

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Iterator over all the enabled options by @arturoc in https://github.com/bitflags/bitflags/pull/278

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    from_bits_(truncate) fail with composite flags by @arturoc in https://github.com/bitflags/bitflags/pull/276

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Add more platform coverage to CI by @KodrAus in https://github.com/bitflags/bitflags/pull/280

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    rework the way cfgs are handled by @KodrAus in https://github.com/bitflags/bitflags/pull/281

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Split generated code into two types by @KodrAus in https://github.com/bitflags/bitflags/pull/282

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    expose bitflags iters using nameable types by @KodrAus in https://github.com/bitflags/bitflags/pull/286

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Support creating flags from their names by @KodrAus in https://github.com/bitflags/bitflags/pull/287

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Update README.md by @KodrAus in https://github.com/bitflags/bitflags/pull/288

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Prepare for 2.0.0-rc.1 release by @KodrAus in https://github.com/bitflags/bitflags/pull/289

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Add missing "if" to contains doc-comment in traits.rs by @rusty-snake in https://github.com/bitflags/bitflags/pull/291

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Forbid unsafe_code by @fintelia in https://github.com/bitflags/bitflags/pull/294

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    serde: enable no-std support by @nim65s in https://github.com/bitflags/bitflags/pull/296

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Add a parser for flags formatted as bar-separated-values by @KodrAus in https://github.com/bitflags/bitflags/pull/297

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Use strip_prefix instead of starts_with + slice by @QuinnPainter in https://github.com/bitflags/bitflags/pull/301

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Add example to the README.md file by @tiaanl in https://github.com/bitflags/bitflags/pull/270

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Fix a typo and call out MSRV bump by @KodrAus in https://github.com/bitflags/bitflags/pull/259

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    BitFlags trait by @arturoc in https://github.com/bitflags/bitflags/pull/220

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Add a hidden trait to discourage manual impls of BitFlags by @KodrAus in https://github.com/bitflags/bitflags/pull/261

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Sanitize `Ok` by @konsumlamm in https://github.com/bitflags/bitflags/pull/266

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Fix bug in `Debug` implementation by @konsumlamm in https://github.com/bitflags/bitflags/pull/268

  • 2.0.0-rc.3 \u2192 2.0.0breaking

    Fix a typo in the generated documentation by @wackbyte in https://github.com/bitflags/bitflags/pull/271

  • 0.9.1 \u2192 1.0.0breaking

    Other improvements to unit tests and documentation ([#106] and [#115])

  • 0.9.1 \u2192 1.0.0breaking

    **[breaking change]** Minimum supported version is Rust **1.20**, due to usage of associated constants

  • 0.9.1 \u2192 1.0.0breaking

    **[breaking change]** Macro now generates [associated constants](https://doc.rust-lang.org/reference/items.html#associated-constants) ([#24])

  • 0.9.1 \u2192 1.0.0deprecated

    After being broken in 0.9, the `#[deprecated]` attribute is now supported again ([#112])

  • 0.8.2 \u2192 0.9.0breaking

    Printing an empty flag value with the `Debug` trait now prints "(empty)" instead of nothing ([#85])

  • 0.8.2 \u2192 0.9.0breaking

    The `bitflags!` macro can now be used inside of a fn body, to define a type local to that function ([#74])

  • 0.8.2 \u2192 0.9.0breaking

    **[breaking change]** Use struct keyword instead of flags to define bitflag types ([#84])

  • 0.8.2 \u2192 0.9.0breaking

    **[breaking change]** Terminate const items with semicolons instead of commas ([#87])

  • 0.8.2 \u2192 0.9.0breaking

    Implement the `Hex`, `Octal`, and `Binary` formatting traits ([#86])

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/bitflags
bitflags breaking changes — Cargo migration guide | DepScope