Thank you for your interest in contributing to XMPKit! This document provides guidelines for contributing to the project.
- Follow Rust standard formatting: run
cargo fmtbefore committing - Follow Rust linting guidelines: run
cargo clippyand fix any warnings - Use meaningful variable and function names
- Add comments for complex logic or non-obvious behavior
- Add tests for all new features
- Ensure all existing tests pass:
cargo test - Test edge cases and error conditions
- Update tests when modifying existing functionality
- Update documentation for all public API changes
- Add doc comments for new public functions, structs, and enums
- Include usage examples in doc comments when helpful
- Update README.md if adding new features or changing behavior
- Fork the repository and create a branch from
main - Make your changes following the code style guidelines
- Add tests for your changes
- Run tests to ensure everything passes:
cargo test - Run clippy to check for linting issues:
cargo clippy - Format code:
cargo fmt
- Keep PRs focused: One feature or fix per PR
- Write clear commit messages: Use conventional commit format when possible
- Include tests: All new features should have tests
- Update documentation: Update relevant documentation for API changes
- Ensure CI passes: All CI checks must pass before requesting review
Include in your PR description:
- What changes you made and why
- How to test the changes
- Any breaking changes (if applicable)
- Related issues (if any)
For major changes or new features:
- Open an issue first to discuss the proposed changes
- Get feedback before implementing
- This helps avoid wasted effort and ensures alignment with project goals
- Clone the repository
- Install Rust (latest stable version recommended)
- Run
cargo testto verify everything works - Run
cargo buildto build the project
If you have questions about contributing, feel free to:
- Open an issue with the
questionlabel - Check existing issues and discussions
Thank you for contributing to XMPKit! 🎉