- Rust toolchain (latest stable)
- Git
- Platform-specific dependencies (see main README)
-
Clone the repository:
git clone https://github.com/YOUR_USERNAME/rusty-backup.git cd rusty-backup -
Build the project (this also installs git hooks):
cargo build
Important: The first build installs a pre-commit hook via
cargo-huskythat automatically runscargo fmtbefore each commit.
This repository uses cargo-husky to automatically format code before commits:
- Automatic formatting: Every commit will run
cargo fmt --allautomatically - No manual action needed: Just commit normally with
git commit - Bypass if needed: Use
git commit --no-verifyto skip the hook (not recommended) - Cross-platform: Works on Windows, macOS, and Linux
The hook is defined in .cargo-husky/hooks/pre-commit and installed to .git/hooks/pre-commit during builds.
- Run
cargo fmtto format code (or rely on the pre-commit hook) - Run
cargo clippyto catch common mistakes - Follow the patterns established in existing code
- See
CLAUDE.mdfor architecture guidelines
cargo test # Run all tests
cargo test test_name # Run specific test
cargo test --lib # Unit tests only
cargo test --test '*' # Integration tests onlycargo build # Debug build
cargo build --release # Release build
cargo run # Run debug build
cargo run --release # Run release build- Write clear, concise commit messages
- Reference issue numbers when applicable
- Code will be auto-formatted by the pre-commit hook
- Ensure tests pass before pushing
- Fork the repository and create a feature branch
- Make your changes with clear commits
- Ensure all tests pass and code is formatted
- Submit a PR with a clear description of changes