Thank you for your interest in contributing to tonic-mock! This document provides guidelines and instructions for contributing to this project.
Please be respectful and considerate of others when contributing to this project. We aim to foster an inclusive and welcoming community.
- Fork the repository on GitHub
- Clone your fork locally
- Add the upstream repository as a remote:
git remote add upstream https://github.com/ORIGINAL_OWNER/tonic-mock.git - Create a new branch for your changes:
git checkout -b feature/your-feature-name
To set up your development environment:
- Install Rust and Cargo (stable channel)
- Run
cargo buildto build the project - Run
cargo testto run the tests
When making changes:
- Ensure your code follows the Rust style guidelines
- Write tests for new features or bug fixes
- Update documentation as necessary
- Run
cargo clippyto check for linting issues - Run
cargo testto make sure all tests pass
- Use clear and descriptive commit messages
- Reference issue numbers in commit messages when relevant
- Keep commits focused on a single change
- Update your fork to latest upstream:
git fetch upstream && git rebase upstream/main - Push your changes to your fork:
git push origin feature/your-feature-name - Create a pull request from your branch to the main branch of the upstream repository
- Fill out the pull request template with all relevant information
- Wait for maintainers to review your pull request and address any feedback
All code changes should include appropriate tests:
- Unit tests for individual components
- Integration tests for API functionality
- Make sure all existing tests pass with your changes
Please update documentation when:
- Adding new features
- Changing existing functionality
- Fixing bugs that might affect user behavior
Documentation should be clear, concise, and include examples where appropriate.
The release process is handled by the maintainers. If you believe a new release should be made, you can open an issue suggesting a release.
If you have any questions about contributing, please open an issue asking for clarification.
Thank you for contributing to tonic-mock!