Skip to content

Commit 15c994f

Browse files
committed
build(deps): add cargo-husky dev dependency
1 parent 1164146 commit 15c994f

4 files changed

Lines changed: 18 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rustmail/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ tower-http = { version = "0.6.8", features = ["compression-gzip", "compression-b
3333
[dependencies.uuid]
3434
version = "1.19.0"
3535
features = ["v4"]
36+
37+
[dev-dependencies.cargo-husky]
38+
version = "1.5.0"
39+
default-features = true
40+
features = ["precommit-hook", "run-cargo-check", "run-cargo-fmt", "run-for-all"]
41+
42+
[package.metadata.husky]
43+
hooks = { pre-commit = "cargo fmt --all -- --check", pre-push = "cargo test --workspace" }

rustmail/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ use crate::bot::{init_bot_state, start_bot_if_config_valid};
22
use crate::prelude::api::*;
33
use axum::extract::Path;
44
use axum::response::Response;
5+
#[cfg(test)]
6+
#[allow(unused_imports)]
7+
use cargo_husky as _;
58
use rust_embed::RustEmbed;
69
use std::borrow::Cow;
710
use std::net::SocketAddr;

rustmail_panel/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ ammonia = "4.1.2"
2121
pulldown-cmark = "0.13.0"
2222
chrono = { version = "0.4.42", features = ["serde", "wasmbind"] }
2323
chrono-tz = { version = "0.10.4", features = ["serde"] }
24-
[build-dependencies]

0 commit comments

Comments
 (0)