The following is a set of guidelines for contributing to NomBytes. Pull requests are very welcome, and the below are guidelines, not rules. Use your best judgment, and feel free to propose changes to this document.
Follow these steps if you want to merge your changes to NomBytes:
- Within your fork of NomBytes, create a branch for your contribution. Use a meaningful name.
- Make your changes.
- Create a pull request against the master branch of the NomBytes repository.
- Once the pull request is approved, the maintainer will merge it.
Some of the below quality and style standards will be enforced automatically by the CI pipeline:
- Separate each logical change into its own commit.
- Each commit must pass all unit & code style tests.
- Unit test coverage should increase the overall coverage of the project.
- Integration test cases should be added for any new functionality added in your pull request.
- All public functions should be documented using Rust Documentation
- Add a descriptive message for each commit. Follow commit message best practices.
- Recommendations from
cargo clippy
should be applied. - All code should be formatted by
cargo fmt
. - Pull requests should be documented, explaining why the pull request was raised.