How to Contribute
How to Contribute
π Setting Up the Project
Install Rust Ensure you have Rust installed. We recommend using rustup:
rustup update
Install Pre-commit Hooks This project uses
pre-commit
to enforce code quality checks automatically. Install and activate the hooks:pipx install pre-commit pre-commit install
Install Spellcheck This project uses
spellcheck
. Install the tool:cargo install cargo-spellcheck
Build and Test Run the following commands to verify everything is working:
cargo build cargo test
Build and Test The project documentation is generated using Hugo. Install the following requirements:
π Making Contributions
Follow Rustβs coding conventions and ensure your code is formatted with
cargo fmt
:cargo fmt --all
Run
clippy
for linting:cargo clippy --all-targets --all-features
Ensure all tests pass:
cargo test
Run pre-commit checks before committing:
pre-commit run --all-files
β¨ Commit Messages (Gitmoji Style)
We follow Gitmoji for structured commit messages. Each commit should start with an emoji that represents the change type. Example:
git commit -m "β¨ Add new feature"
π Submitting a Pull Request
Push your branch to your fork:
git push origin feature-or-bugfix-name
Open a Pull Request (PR) on GitHub:
- Provide a clear title and description.
- Link any relevant issue (if applicable).
- Request a review from maintainers.