Crate features / derive_more
Feature flags · derive_more 2.1.1 · from crates.io 2026-10-24
derive_more features: what each one does, and the line to copy
Short answerderive_more 2.1.1 has 28 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.81.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
add | derive_more-impl/add | |
add_assign | derive_more-impl/add_assign | |
as_ref | derive_more-impl/as_ref | |
constructor | derive_more-impl/constructor | |
debug | derive_more-impl/debug | |
deref | derive_more-impl/deref | |
deref_mut | derive_more-impl/deref_mut | |
display | derive_more-impl/display | |
eq | derive_more-impl/eq | |
error | derive_more-impl/error | |
from | derive_more-impl/from | |
from_str | derive_more-impl/from_str | |
full | add, add_assign, as_ref, constructor, debug, deref, deref_mut, display, eq, error, from, from_str, index, index_mut, into, into_iterator, is_variant, mul, mul_assign, not, sum, try_from, try_into, try_unwrap, unwrap | |
index | derive_more-impl/index | |
index_mut | derive_more-impl/index_mut | |
into | derive_more-impl/into | |
into_iterator | derive_more-impl/into_iterator | |
is_variant | derive_more-impl/is_variant | |
mul | derive_more-impl/mul | |
mul_assign | derive_more-impl/mul_assign | |
not | derive_more-impl/not | |
std | yes | nothing else (a switch the code checks) |
sum | derive_more-impl/sum | |
testing-helpers | derive_more-impl/testing-helpers, dep:rustc_version | |
try_from | derive_more-impl/try_from | |
try_into | derive_more-impl/try_into | |
try_unwrap | derive_more-impl/try_unwrap | |
unwrap | derive_more-impl/unwrap |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version derive_more declares (rust-version), and the release that changed it:
- 1.0.0-beta.1 (2023-07-23): Rust 1.65.0
- 1.0.0-beta.6 (2023-10-19): Rust 1.72.0
- 0.99.18 (2024-06-15): no rust-version declared
- 1.0.0-beta.7 (2024-08-01): Rust 1.75.0
- 0.99.19 (2025-02-03): no rust-version declared
- 2.0.1 (2025-02-03): Rust 1.75.0
- 0.99.20 (2025-04-23): no rust-version declared
- 2.1.0 (2025-12-02): Rust 1.81.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p derive_more --precise <version>, or use resolver 3, which picks compatible versions for you.
More on derive_more
docs.rs feature list · crates.io · license MIT · edition 2021
Up next
Next crateFeature flags for every popular crateRead it next →Also worth your time
Did this answer your question?