From d0af946b9baac381a7505edeb54641a1d7a006ca Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 8 May 2020 12:35:08 -0400 Subject: [PATCH] Use cargo-husky to add automatic git commit/push hooks. --- tor-llcrypto/Cargo.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tor-llcrypto/Cargo.toml b/tor-llcrypto/Cargo.toml index f425e9a3f..d0172c52d 100644 --- a/tor-llcrypto/Cargo.toml +++ b/tor-llcrypto/Cargo.toml @@ -16,7 +16,7 @@ aes-ctr = "*" zeroize = "*" rsa = "*" simple_asn1= "*" -subtle = "2.2.2" +subtle = "*" stream-cipher = "*" num-traits = "*" num-bigint = "*" @@ -40,3 +40,11 @@ version = "0.8.2" [dev-dependencies] hex-literal = "*" + +# This is a magic crate that runs the tests and checks the format +# before it lets you commit or push. It installs git hooks for this whenever +# you say "cargo test". +[dev-dependencies.cargo-husky] +version = "1" +features = ["precommit-hook", "run-cargo-test", + "run-cargo-fmt", "run-for-all" ] \ No newline at end of file