No description
  • Rust 74.7%
  • Shell 25.3%
Find a file Use this template
chrono 5b70d09b50
Some checks failed
CI / Format, Lint, Test (push) Has been cancelled
Delete tests/enforce_result_return.rs.txt
2026-02-10 01:08:51 -05:00
.github/workflows ci: add GitHub Actions workflow for fmt/clippy/tests 2026-02-09 21:36:09 -05:00
src chore: initial commit 2026-02-09 21:24:19 -05:00
.gitignore chore: initial commit 2026-02-09 21:24:19 -05:00
.rustfmt.toml chore: align rustfmt and clippy lints with tsblitz 2026-02-09 21:27:32 -05:00
Cargo.lock chore: initial commit 2026-02-09 21:24:19 -05:00
Cargo.toml chore: align rustfmt and clippy lints with tsblitz 2026-02-09 21:27:32 -05:00
clippy.toml chore: initial commit 2026-02-09 21:24:19 -05:00
pre-commit-hook.sh chore: initial commit 2026-02-09 21:24:19 -05:00
README.md Update README.md 2026-02-10 01:08:40 -05:00

Rust Project Template

What this repo provides

  • Preconfigured rustfmt settings (.rustfmt.toml) tuned for an 80-column, space-indented style.
  • Workspace lint configuration in Cargo.toml using the [lints.*] table so cargo clippy ` follow standards.

Quick start

  1. Format code locally:
cargo fmt
  1. Run clippy and lints (recommended regularly and in CI):
cargo clippy --workspace --all-targets --all-features -- -D warnings
  1. 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/expect in production code.
  • Be conscious of memory and avoid large stack allocations or heavy heap usage without reason.