This crate follows the standard for developing a Rust library via cargo
.
The CI is our "ground truth" over the state of the library. Check out the different parts of
the CI to understand how to test the different parts of this library locally.
The simplest way to test the crate is to run
cargo test
This runs the tests of the crate without features. To run all features, use
cargo test --features full
during development of particular parts of the crate, it is usually faster to reduce the feature set - the tests are gated to only the relevant tests of that feature set. For example, if improving JSON, you can use
cargo test --features io_json
We currently do not have maintaince versions and thus only PR and merge to main
.
We use labels to build a changelog - it is very important to label issues and/or PRs accordingly. Because our changelog can contain both issues and PRs, when a PR closes an issue, we favor having the PR on the changelog, since it includes a reference to the author (credits).
Summary:
- pull requests with both backward-incompatible changes and new features/enchancements MUST close at least one issue (the one documenting the backward-incompatible change)
- Every other pull request MAY close one issue
issues are only used to document situations whose a single PR adds two entries to the changelog (e.g. a backward incompatible change + an new enchancement).
Merging a PR to main has the following checklist:
- Does it close an issue? If yes, add the label
no-changelog
to the issue. - Label the PR accordingly (
Testing
,Documentation
,Enchancement
,Feature
,Bug
) - If the PR is backward incompatible:
- create a new issue labeled
backward-incompatible
with what changed and how to migrate from the old API to the new API - Edit the PR's description with
Closes #...
- create a new issue labeled
- Adjust the PRs title with a description suitable for the changelog
- In the past tense
- backtick code names (e.g.
MutableArray
, not MutableArray) - place "(-X%)" or "(Yx)" at the end if it is a performance improvement
- Press merge (squash merge) and adjust any items added by github to your liking
This will reduce the burden of a release, where we go through every item from the changelog and adjust titles, labels, etc.