ferris-says
ferris-says copied to clipboard
[Question] missing Clippy
Confused :crab: ...
- added
[features]
clippy = []
to Cargo.toml
- then, trying
cargo run --features "clippy"
(from https://github.com/rust-lang/ferris-says/pull/5), the output always... features... Ferris...
What am I missing?
This adds the clippy
feature to your crate, so running cargo run --features "clippy"
enables the feature of your crate but does not enable the clippy
feature of your dependencies, even if it has the same name.
To use ferris-says
with the clippy
feature enabled, change its Cargo.toml
entry to ferris-says = { version = "0.3.1", features = ["clippy"] }
. If you want to optionally enable to clippy
feature of ferris-says
instead, change your Cargo.toml
to include the following:
[features]
clippy = ["ferris-says/clippy"]
Enabling the clippy
feature of your crate now also enables to feature in ferris-says
.