docs.rs failed to build pre-commit-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
pre-commit
Reads hooks metadata from Cargo.toml and executes on commit
Installing
$ cargo install pre-commit
Usage
Add a table like the following to your Cargo.toml
[package.metadata.precommit]
fmt = "cargo fmt -- --write-mode diff 2>&1"
test = "cargo test 2>&1"
Then run:
cargo clean; cargo build;
You should now have a pre-commit
file in your ./git/hooks
that will run the listed pre-commit entries.