Remix.run Logo
hydra-f 9 hours ago

A lefthook:

format: glob: ".rs" run: cargo fmt -- --check

lint: glob: ".rs" run: cargo clippy -- -D warnings

tests: run: cargo test

audit: run: cargo audit

+ hooks that shove the lefthook automatically in the ai's face

---

rustfmt.toml:

edition = "2021" newline_style = "Unix" use_small_heuristics = "Max" max_width = 100

ramon156 8 hours ago | parent [-]

use "stage_fixed" to automatically persist the formatting :)

hydra-f 8 hours ago | parent [-]

Thank you!