Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 3, 2025

This PR contains the following updates:

Package Type Update Change
derive_more dependencies major 1.02.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 this update again.


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

This PR was generated by Mend Renovate. View the repository job log.

@codecov
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.77%. Comparing base (b267ff8) to head (92e48a9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage   48.77%   48.77%           
=======================================
  Files          16       16           
  Lines        2005     2005           
=======================================
  Hits          978      978           
  Misses       1027     1027           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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