From 6f4fbc0c6005506e21d8ba061f1f35bf73bdc191 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 10 Sep 2020 12:04:00 -0500 Subject: [PATCH] Testing out cargo-husky. --- server/Cargo.lock | 7 +++++++ server/Cargo.toml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/server/Cargo.lock b/server/Cargo.lock index 023a3f9dd..867d1eaa8 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -768,6 +768,12 @@ dependencies = [ "time 0.1.43", ] +[[package]] +name = "cargo-husky" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b02b629252fe8ef6460461409564e2c21d0c8e77e0944f3d189ff06c4e932ad" + [[package]] name = "cc" version = "1.0.58" @@ -1851,6 +1857,7 @@ dependencies = [ "base64 0.12.3", "bcrypt", "captcha", + "cargo-husky", "chrono", "diesel", "diesel_migrations", diff --git a/server/Cargo.toml b/server/Cargo.toml index e12d8c61a..ca8fa7849 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -59,3 +59,8 @@ anyhow = "1.0.32" thiserror = "1.0.20" background-jobs = " 0.8.0-alpha.2" reqwest = { version = "0.10", features = ["json"] } + +[dev-dependencies.cargo-husky] +version = "1" +default-features = false # Disable features which are enabled by default +features = ["precommit-hook", "run-cargo-fmt", "run-cargo-clippy"]