Thank you for your interest in contributing to bitcache! This document provides guidelines and instructions for contributing.
-
Install Rust: Get the latest stable Rust toolchain from rustup.rs
-
Clone the repository:
git clone https://github.com/BondMachineHQ/bitcache.git cd bitcache -
Build the project:
cargo build
-
Run tests:
cargo test
- Follow standard Rust formatting using
cargo fmt - Ensure code passes
cargo clippychecks - Add documentation for public APIs
- Include examples in documentation where appropriate
-
Fork the repository on GitHub
-
Create a feature branch:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git commit -m "Description of your changes" -
Run tests and checks:
cargo test cargo fmt --check cargo clippy -- -D warnings -
Push to your fork:
git push origin feature/your-feature-name
-
Create a Pull Request on GitHub
Before submitting a pull request, ensure:
- All existing tests pass
- New functionality includes appropriate tests
- Code is properly formatted (
cargo fmt) - No clippy warnings (
cargo clippy)
- Update README.md if adding new features
- Add inline documentation for new functions and types
- Include usage examples for new functionality
Feel free to open an issue for:
- Bug reports
- Feature requests
- Questions about the codebase
- Suggestions for improvements
Thank you for contributing!