Skip to content

Improve documentation: how to apply feature changes #30

@sbeyer

Description

@sbeyer

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:

  1. add
    [dev-dependencies.cargo-husky]
    version = "1"
    features = ["precommit-hook", "run-cargo-clippy"]
    to Cargo.toml
  2. invoke cargo test
  3. notice that .git/hooks/pre-commit contains cargo clippy 👍
  4. add "run-cargo-fmt" to the features in Cargo.toml
  5. invoke cargo test
  6. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions