rust-lang / ferris-says

A Rust flavored implementation of `cowsay`
https://crates.io/crates/ferris-says
Apache License 2.0
191 stars 35 forks source link

[Question] missing Clippy #37

Open maxdevjs opened 1 year ago

maxdevjs commented 1 year ago

Confused :crab: ...

What am I missing?

lcnr commented 5 months ago

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.