cargo fmt all check ins

This commit is contained in:
2025-08-22 11:10:11 -07:00
parent d3fa55e572
commit 155c420a1a
2 changed files with 40 additions and 0 deletions
+12
View File
@@ -460,6 +460,18 @@ cargo run -p socktop -- ws://127.0.0.1:3000/ws
cargo run -p socktop_agent -- --enableSSL --port 8443
```
### Auto-format on commit
A sample pre-commit hook that runs `cargo fmt --all` is provided in `.githooks/pre-commit`.
Enable it (one-time):
```bash
git config core.hooksPath .githooks
chmod +x .githooks/pre-commit
```
Every commit will then format Rust sources and restage them automatically.
---
## Roadmap