- Rust 1.70 or higher
- Cargo (comes with Rust)
Install Rust from rustup.rs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh# Debug build
cargo build
# Release build
cargo build --release
# Binary at: ./target/release/tmpltool# Run all tests
cargo test
# Run with output
cargo test -- --nocapture
# Run specific test
cargo test test_name# Format code
cargo fmt
# Run linter
cargo clippy
# Full QA check (format + clippy + test)
cargo make qaInstall cargo-make:
cargo install --force cargo-makeCommon tasks:
cargo make build # Build debug
cargo make build-release # Build release
cargo make test # Run tests
cargo make qa # Full QA (format + clippy + test)
cargo make ci # CI checks
cargo make docs # Generate docsCross-platform builds:
cargo make build-linux-x86_64 # Linux x86_64
cargo make build-linux-musl # Linux (static)
cargo make build-macos-x86_64 # macOS Intel
cargo make build-macos-aarch64 # macOS Apple Silicon
cargo make build-windows-x86_64 # Windows
cargo make build-all-platforms # All platforms