fix(deps): update rust crate derive_more to v2 #132

Open
renovate-bot wants to merge 1 commit from renovate/derive_more-2.x into master
Member

This PR contains the following updates:

Package Type Update Change
derive_more dependencies major 1 -> 2
derive_more dependencies major 0.99.17 -> 2.0.0

Release Notes

JelteF/derive_more (derive_more)

v2.1.1

Compare Source

Fixed
  • .as_dyn_error() method hygiene inside Error derive expansion.
    (#​527)

v2.1.0

Compare Source

Added
  • Support #[display(rename_all = "<casing>")] attribute to change output for
    implicit naming of unit enum variants or unit structs when deriving Display.
    (#​443)
  • Support #[from_str(rename_all = "<casing>")] attribute for unit enum variants
    and unit structs when deriving FromStr.
    (#​467)
  • Support Option fields for Error::source() in Error derive.
    (#​459)
  • Support structs with no fields in FromStr derive.
    (#​469)
  • Add PartialEq derive similar to std's one, but considering generics correctly,
    and implementing ne() method as well.
    (#​473,
    #​475)
  • Add Eq derive similar to std's one, but considering generics correctly.
    (#​479)
  • Proxy-pass #[allow]/#[expect] attributes of the type in Constructor derive.
    (#​477)
  • Support Deref and DerefMut derives for enums.
    (#​485)
  • Support custom error in FromStr derive.
    (#​494)
  • Support custom error in TryInto derive.
    (#​503)
  • Support skipping fields in Add-like, AddAssign-like, Mul-like and
    MulAssign-like derives.
    (#​472)
Changed
  • The minimum supported Rust version (MSRV) is now Rust 1.81.
    (#​466)
  • Add-like, AddAssign-like, Mul-like and MulAssign-like derives now
    infer trait bounds for generics structurally (bound field types instead of
    type parameters directly).
    (#​472)
Fixed
  • Suppress deprecation warnings in generated code.
    (#​454)
  • Silent no-op when #[try_from(repr)] attribute is not specified for TryFrom derive.
    (#​458)
  • Missing trait bounds in AsRef/AsMut derives when associative types are involved.
    (#​474)
  • Erroneous code generated in Try/TryInto derives when Self type is present in
    the struct or enum definition.
    (#​489)
  • Dependency on unstable feature(error_generic_member_access) in Error derive when
    using Backtrace on a non-nightly toolchain.
    (#​513)
  • Broken support for #[<display-trait>("default formatting")] attribute without {_variant}
    being used as default for enum variants without explicit formatting.
    (#​495)

v2.0.1

Compare Source

Added
  • Add crate metadata for the Rust Playground. This makes sure that the Rust
    Playground will have all derive_more features available once
    selectors crate updates its
    derive_more version.
    (#​445)

v2.0.0

Compare Source

Breaking changes
  • use derive_more::SomeTrait now imports macro only. Importing macro with
    its trait along is possible now via use derive_more::with_trait::SomeTrait.
    (#​406)
  • Top-level #[display("...")] attribute on an enum now has defaulting behavior
    instead of replacing when no wrapping is possible (no _variant placeholder).
    (#​395)
Fixed
  • Associated types of type parameters not being treated as generics in Debug
    and Display expansions.
    (#​399)
  • unreachable_code warnings on generated code when ! (never type) is used.
    (#​404)
  • Ambiguous associated item error when deriving TryFrom, TryInto or FromStr
    with an associated item called Error or Err respectively.
    (#​410)
  • Top-level #[display("...")] attribute on an enum being incorrectly treated
    as transparent or wrapping.
    (#​395)
  • Omitted raw identifiers in Debug and Display expansions.
    (#​431)
  • Incorrect rendering of raw identifiers as field names in Debug expansions.
    (#​431)
  • Top-level #[display("...")] attribute on an enum not working transparently
    for directly specified fields.
    (#​438)
  • Incorrect dereferencing of unsized fields in Debug and Display expansions.
    (#​440)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [derive_more](https://github.com/JelteF/derive_more) | dependencies | major | `1` -> `2` | | [derive_more](https://github.com/JelteF/derive_more) | dependencies | major | `0.99.17` -> `2.0.0` | --- ### Release Notes <details> <summary>JelteF/derive_more (derive_more)</summary> ### [`v2.1.1`](https://github.com/JelteF/derive_more/blob/HEAD/CHANGELOG.md#211---2025-12-22) [Compare Source](https://github.com/JelteF/derive_more/compare/v2.1.0...v2.1.1) ##### Fixed - `.as_dyn_error()` method hygiene inside `Error` derive expansion. ([#&#8203;527](https://github.com/JelteF/derive_more/pull/527)) ### [`v2.1.0`](https://github.com/JelteF/derive_more/blob/HEAD/CHANGELOG.md#210---2025-12-02) [Compare Source](https://github.com/JelteF/derive_more/compare/v2.0.1...v2.1.0) ##### Added - Support `#[display(rename_all = "<casing>")]` attribute to change output for implicit naming of unit enum variants or unit structs when deriving `Display`. ([#&#8203;443](https://github.com/JelteF/derive_more/pull/443)) - Support `#[from_str(rename_all = "<casing>")]` attribute for unit enum variants and unit structs when deriving `FromStr`. ([#&#8203;467](https://github.com/JelteF/derive_more/pull/467)) - Support `Option` fields for `Error::source()` in `Error` derive. ([#&#8203;459](https://github.com/JelteF/derive_more/pull/459)) - Support structs with no fields in `FromStr` derive. ([#&#8203;469](https://github.com/JelteF/derive_more/pull/469)) - Add `PartialEq` derive similar to `std`'s one, but considering generics correctly, and implementing `ne()` method as well. ([#&#8203;473](https://github.com/JelteF/derive_more/pull/473), [#&#8203;475](https://github.com/JelteF/derive_more/pull/475)) - Add `Eq` derive similar to `std`'s one, but considering generics correctly. ([#&#8203;479](https://github.com/JelteF/derive_more/pull/479)) - Proxy-pass `#[allow]`/`#[expect]` attributes of the type in `Constructor` derive. ([#&#8203;477](https://github.com/JelteF/derive_more/pull/477)) - Support `Deref` and `DerefMut` derives for enums. ([#&#8203;485](https://github.com/JelteF/derive_more/pull/485)) - Support custom error in `FromStr` derive. ([#&#8203;494](https://github.com/JelteF/derive_more/pull/494)) - Support custom error in `TryInto` derive. ([#&#8203;503](https://github.com/JelteF/derive_more/pull/503)) - Support skipping fields in `Add`-like, `AddAssign`-like, `Mul`-like and `MulAssign`-like derives. ([#&#8203;472](https://github.com/JelteF/derive_more/pull/472)) ##### Changed - The minimum supported Rust version (MSRV) is now Rust 1.81. ([#&#8203;466](https://github.com/JelteF/derive_more/pull/466)) - `Add`-like, `AddAssign`-like, `Mul`-like and `MulAssign`-like derives now infer trait bounds for generics structurally (bound field types instead of type parameters directly). ([#&#8203;472](https://github.com/JelteF/derive_more/pull/472)) ##### Fixed - Suppress deprecation warnings in generated code. ([#&#8203;454](https://github.com/JelteF/derive_more/pull/454)) - Silent no-op when `#[try_from(repr)]` attribute is not specified for `TryFrom` derive. ([#&#8203;458](https://github.com/JelteF/derive_more/pull/458)) - Missing trait bounds in `AsRef`/`AsMut` derives when associative types are involved. ([#&#8203;474](https://github.com/JelteF/derive_more/pull/474)) - Erroneous code generated in `Try`/`TryInto` derives when `Self` type is present in the struct or enum definition. ([#&#8203;489](https://github.com/JelteF/derive_more/pull/489)) - Dependency on unstable `feature(error_generic_member_access)` in `Error` derive when using `Backtrace` on a non-nightly toolchain. ([#&#8203;513](https://github.com/JelteF/derive_more/pull/513)) - Broken support for `#[<display-trait>("default formatting")]` attribute without `{_variant}` being used as default for enum variants without explicit formatting. ([#&#8203;495](https://github.com/JelteF/derive_more/pull/495)) ### [`v2.0.1`](https://github.com/JelteF/derive_more/blob/HEAD/CHANGELOG.md#201---2025-02-03) [Compare Source](https://github.com/JelteF/derive_more/compare/v2.0.0...v2.0.1) ##### Added - Add crate metadata for the Rust Playground. This makes sure that the Rust Playground will have all `derive_more` features available once [`selectors`](https://docs.rs/selectors/latest/selectors) crate updates its `derive_more` version. ([#&#8203;445](https://github.com/JelteF/derive_more/pull/445)) ### [`v2.0.0`](https://github.com/JelteF/derive_more/blob/HEAD/CHANGELOG.md#200---2025-02-03) [Compare Source](https://github.com/JelteF/derive_more/compare/v1.0.0...v2.0.0) ##### Breaking changes - `use derive_more::SomeTrait` now imports macro only. Importing macro with its trait along is possible now via `use derive_more::with_trait::SomeTrait`. ([#&#8203;406](https://github.com/JelteF/derive_more/pull/406)) - Top-level `#[display("...")]` attribute on an enum now has defaulting behavior instead of replacing when no wrapping is possible (no `_variant` placeholder). ([#&#8203;395](https://github.com/JelteF/derive_more/pull/395)) ##### Fixed - Associated types of type parameters not being treated as generics in `Debug` and `Display` expansions. ([#&#8203;399](https://github.com/JelteF/derive_more/pull/399)) - `unreachable_code` warnings on generated code when `!` (never type) is used. ([#&#8203;404](https://github.com/JelteF/derive_more/pull/404)) - Ambiguous associated item error when deriving `TryFrom`, `TryInto` or `FromStr` with an associated item called `Error` or `Err` respectively. ([#&#8203;410](https://github.com/JelteF/derive_more/pull/410)) - Top-level `#[display("...")]` attribute on an enum being incorrectly treated as transparent or wrapping. ([#&#8203;395](https://github.com/JelteF/derive_more/pull/395)) - Omitted raw identifiers in `Debug` and `Display` expansions. ([#&#8203;431](https://github.com/JelteF/derive_more/pull/431)) - Incorrect rendering of raw identifiers as field names in `Debug` expansions. ([#&#8203;431](https://github.com/JelteF/derive_more/pull/431)) - Top-level `#[display("...")]` attribute on an enum not working transparently for directly specified fields. ([#&#8203;438](https://github.com/JelteF/derive_more/pull/438)) - Incorrect dereferencing of unsized fields in `Debug` and `Display` expansions. ([#&#8203;440](https://github.com/JelteF/derive_more/pull/440)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjQuMSIsInVwZGF0ZWRJblZlciI6IjQyLjUyLjgiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOlsicmVub3ZhdGUtYm90Il19-->
renovate-bot force-pushed renovate/derive_more-2.x from 0a19e727b6
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
to a3e90b6a7d
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
2025-04-03 12:01:52 +05:30
Compare
renovate-bot force-pushed renovate/derive_more-2.x from a3e90b6a7d
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
to 893ec17d51
Some checks failed
renovate/artifacts Artifact file update failure
2025-09-01 05:13:26 +05:30
Compare
renovate-bot force-pushed renovate/derive_more-2.x from 893ec17d51
Some checks failed
renovate/artifacts Artifact file update failure
to a1e3fc16da
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
2025-09-01 16:57:45 +05:30
Compare
renovate-bot force-pushed renovate/derive_more-2.x from a1e3fc16da
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
to 908e97ccf4
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/push/woodpecker Pipeline is pending
ci/woodpecker/pr/woodpecker Pipeline is pending
2025-10-04 14:00:35 +05:30
Compare
renovate-bot force-pushed renovate/derive_more-2.x from 908e97ccf4
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/push/woodpecker Pipeline is pending
ci/woodpecker/pr/woodpecker Pipeline is pending
to 47a564e595
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/pr/woodpecker Pipeline is pending
ci/woodpecker/push/woodpecker Pipeline failed
2025-10-04 16:08:13 +05:30
Compare
renovate-bot force-pushed renovate/derive_more-2.x from 47a564e595
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/pr/woodpecker Pipeline is pending
ci/woodpecker/push/woodpecker Pipeline failed
to 9ae8508567
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/pull_request_metadata/woodpecker Pipeline is pending
2025-11-04 16:25:50 +05:30
Compare
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/pull_request_metadata/woodpecker Pipeline is pending
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/derive_more-2.x:renovate/derive_more-2.x
git switch renovate/derive_more-2.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff renovate/derive_more-2.x
git switch renovate/derive_more-2.x
git rebase master
git switch master
git merge --ff-only renovate/derive_more-2.x
git switch renovate/derive_more-2.x
git rebase master
git switch master
git merge --no-ff renovate/derive_more-2.x
git switch master
git merge --squash renovate/derive_more-2.x
git switch master
git merge --ff-only renovate/derive_more-2.x
git switch master
git merge renovate/derive_more-2.x
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ForgeFlux/ForgeFlux!132
No description provided.