language-formatters-pre-commit-hooks
language-formatters-pre-commit-hooks copied to clipboard
Rust: add support to non-root folder Config.toml
cargo fmt
has support to --manifest-path
argument, that can be used for passing Config.toml
location.
It can be used in this way: cargo fmt --manifest-path my/subdir/Cargo.toml -- --check
.
It is useful when your repository contains Cargo.toml
in the non-root location.