derive_more breaking changes

cargo

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

21
changes
Breaking changes by transition
  • 0.99.19 \u2192 2.0.0behavior

    Top-level `#[display("...")]` attribute on an enum now has defaulting behavior

  • 0.99.19 \u2192 2.0.0breaking

    `use derive_more::SomeTrait` now imports macro only. Importing macro with

  • 0.99.18 \u2192 1.0.0behavior

    All Cargo features, except `std`, are now disabled by default. The `full`

  • 0.99.18 \u2192 1.0.0breaking

    The `TryFrom`, `Add`, `Sub`, `BitAnd`, `BitOr`, `BitXor`, `Not` and `Neg`

  • 0.99.18 \u2192 1.0.0breaking

    The `FromStr` derive now uses a dedicated `FromStrError` error type instead

  • 0.99.18 \u2192 1.0.0breaking

    The `Display` derive (and other `fmt`-like ones) now uses

  • 0.99.18 \u2192 1.0.0breaking

    The `Debug` and `Display` derives (and other `fmt`-like ones) now transparently

  • 0.99.18 \u2192 1.0.0breaking

    The `From` derive doesn't derive `From<()>` for enum variants without any

  • 0.99.18 \u2192 1.0.0breaking

    The minimum supported Rust version (MSRV) is now Rust 1.75.

  • 0.99.18 \u2192 1.0.0breaking

    Add the `std` feature which should be disabled in `no_std` environments.

  • 0.99.18 \u2192 1.0.0breaking

    The `Into` derive now uses `#[into(<types>)]` instead of `#[into(types(<types>))]`

  • 0.99.18 \u2192 1.0.0breaking

    The `Into` derive now generates separate impls for each field whenever the `#[into(...)]`

  • 0.99.18 \u2192 1.0.0breaking

    Importing a derive macro now also imports its corresponding trait.

  • 0.99.18 \u2192 1.0.0breaking

    The `Error` derive is updated with changes to the `error_generic_member_access`

  • 0.99.18 \u2192 1.0.0breaking

    A top level `#[display("...")]` attribute on an enum now requires the usage

  • 0.99.18 \u2192 1.0.0breaking

    The `From` derive now uses `#[from(<types>)]` instead of `#[from(types(<types>))]`

  • 0.99.18 \u2192 1.0.0removed

    The `as_mut` feature is removed, and the `AsMut` derive is now gated by the

  • 0.99.18 \u2192 1.0.0renamed

    The `DebugCustom` derive is renamed to just `Debug` (gated now under a separate

  • 0.15.0 \u2192 0.99.0breaking

    When using in a Rust 2015 crate, you should add `extern crate core` to your

  • 0.15.0 \u2192 0.99.0breaking

    The minimum supported rust version (MSRV) is now Rust 1.36.

  • 0.15.0 \u2192 0.99.0removed

    `no_std` feature is removed, the library now supports `no_std` without having

API access

Get this data programmatically \u2014 free, no authentication.

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