Skip to content

Glossary: Rust in Practice

Cargo feature

Also written: feature, features, --features

An optional part of a crate that you turn on when adding it, such as `cargo add clap --features derive`. With several crates, a feature is written `crate/feature`.

Where the book teaches it

Related terms

cargo add