For cargo-husky users that are new to Rust and the cargo system, it might be unclear how to let updated cargo-husky feature changes in Cargo.toml also update the Git hooks.
For example, perform the following steps:
- add
[dev-dependencies.cargo-husky]
version = "1"
features = ["precommit-hook", "run-cargo-clippy"]
to Cargo.toml
- invoke
cargo test
- notice that
.git/hooks/pre-commit contains cargo clippy 👍
- add
"run-cargo-fmt" to the features in Cargo.toml
- invoke
cargo test
- notice that
.git/hooks/pre-commit does not contain cargo fmt 👎
My request is to update the README.md to make clear how to "activate" changed feature settings.
For cargo-husky users that are new to Rust and the cargo system, it might be unclear how to let updated cargo-husky feature changes in
Cargo.tomlalso update the Git hooks.For example, perform the following steps:
Cargo.tomlcargo test.git/hooks/pre-commitcontainscargo clippy👍"run-cargo-fmt"to the features inCargo.tomlcargo test.git/hooks/pre-commitdoes not containcargo fmt👎My request is to update the README.md to make clear how to "activate" changed feature settings.