chore(husky): support cargo workspace

This commit is contained in:
Slinetrac
2025-12-13 20:28:25 +08:00
parent 04e50824f1
commit 34793f9880
2 changed files with 9 additions and 21 deletions

View File

@@ -25,16 +25,10 @@ pnpm typecheck
if command -v cargo >/dev/null 2>&1; then
echo "[pre-push] Verifying Rust formatting..."
(
cd src-tauri
cargo fmt --check
)
cargo fmt --check
echo "[pre-push] Running cargo clippy..."
(
cd src-tauri
cargo clippy-all
)
cargo clippy-all
else
echo "[pre-push] ⚠️ cargo not found; skipping Rust checks."
fi