Crate features / cargo_metadata
Feature flags · cargo_metadata 0.23.1 · from crates.io 2026-10-24
cargo_metadata features: what each one does, and the line to copy
Short answercargo_metadata 0.23.1 has 2 features. Nothing is on by default: turn on what you use. It needs Rust 1.86.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
builder | derive_builder | |
unstable | nothing else (a switch the code checks) |
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 cargo_metadata declares (rust-version), and the release that changed it:
- 0.15.0 (2022-06-22): Rust 1.42.0
- 0.17.0 (2023-07-24): Rust 1.56.0
- 0.19.0 (2024-11-20): Rust 1.73.0
- 0.19.1 (2024-12-03): Rust 1.78.0
- 0.20.0 (2025-05-27): Rust 1.82.0
- 0.21.0 (2025-07-10): Rust 1.86.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p cargo_metadata --precise <version>, or use resolver 3, which picks compatible versions for you.
More on cargo_metadata
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?