Crate features / darling
Feature flags · darling 0.24.1 · from crates.io 2026-10-24
darling features: what each one does, and the line to copy
Short answerdarling 0.24.1 has 3 features. By default it turns on suggestions; add default-features = false to start from nothing. It needs Rust 1.88.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
diagnostics | darling_core/diagnostics | |
serde | darling_core/serde | |
suggestions | yes | darling_core/suggestions |
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 darling declares (rust-version), and the release that changed it:
- 0.20.9 (2024-05-15): Rust 1.56
- 0.21.2 (2025-08-14): Rust 1.56.0
- 0.23.0 (2025-12-03): Rust 1.88.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p darling --precise <version>, or use resolver 3, which picks compatible versions for you.
More on darling
Real downloads, dependents and alternatives: darling crate data (2.6M real downloads a day, 1,155 dependents).
docs.rs feature list · crates.io · license MIT · edition 2021
Up next
Before you depend on itdarling crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?