Thank you for your interest in contributing to the JSON:API library! We welcome contributions from the community and are excited to work with you.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project, you agree to abide by its terms.
- Ensure the bug was not already reported by searching on GitHub under Issues.
- If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
- Open a new issue with a clear title and detailed description of the proposed enhancement.
- Provide examples of how the enhancement would be used.
- Explain why this enhancement would be useful to most JSON:API users.
- Fork the repository and create your branch from
main. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- Issue that pull request!
-
Clone the repository:
git clone https://github.com/your-username/json-api.git
-
Navigate to the project directory:
cd json-api -
Build the project:
cargo build
-
Run tests:
cargo test
- Follow the Rust Style Guide.
- Run
cargo fmtto format your code. - Run
cargo clippyto catch common mistakes and improve your code.
- Write tests for any new functionality.
- Ensure all tests pass before submitting a pull request.
- Include both unit tests and integration tests where appropriate.
- Update documentation when making changes to the API.
- Add examples for new features.
- Ensure all public functions have clear doc comments.
If you need help with contributing, feel free to:
- Open an issue with your question
- Reach out to the maintainers
By contributing to this project, you agree that your contributions will be licensed under the MIT License.