No description
- Rust 74.7%
- Shell 25.3%
|
|
||
|---|---|---|
| .github/workflows | ||
| src | ||
| .gitignore | ||
| .rustfmt.toml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| clippy.toml | ||
| pre-commit-hook.sh | ||
| README.md | ||
Rust Project Template
What this repo provides
- Preconfigured
rustfmtsettings (.rustfmt.toml) tuned for an 80-column, space-indented style. - Workspace lint configuration in
Cargo.tomlusing the[lints.*]table socargo clippy` follow standards.
Quick start
- Format code locally:
cargo fmt
- Run clippy and lints (recommended regularly and in CI):
cargo clippy --workspace --all-targets --all-features -- -D warnings
- Run the full project check (format + clippy + tests):
./check.sh
Guiding principles
- Keep functions short and simple (cognitive complexity target ~10; max ~50 lines).
- Prefer explicit error handling; avoid
unwrap/expectin production code. - Be conscious of memory and avoid large stack allocations or heavy heap usage without reason.