This document describes the requirements for committing to this repository.
In order to contribute to this project, you must sign each of your commits to
attest that you have the right to contribute that code. This is done with the
-s/--signoff flag on git commit. More information about DCO can be found
here
All code that is contributed to this project must go through the Pull Request (PR) process. To contribute a PR, fork this project, create a new branch, make changes on that branch, and then use GitHub to open a pull request with your changes.
Every PR must be reviewed by at least one Core Maintainer of the project. Once a PR has been marked "Approved" by a Core Maintainer (and no other core maintainer has an open "Rejected" vote), the PR may be merged. While it is fine for non-maintainers to contribute their own code reviews, those reviews do not satisfy the above requirement.
-
Node.js (v22+)
-
Rust (stable)
-
Yarn (v4, included via Corepack)
-
cargo-edit— providescargo set-version, used by thebumpscript:cargo install cargo-edit
yarn install
yarn build # release build
yarn build:debug # debug buildBoth build and build:debug run a version consistency check before compiling.
If the versions in Cargo.toml, package.json, and testing/package.json are
out of sync, the build will fail with a clear message.
The package version in Cargo.toml is the single source of truth. Several files
must stay in sync: package.json, testing/package.json (version and peer
dependency), and yarn.lock.
Bumping the version:
yarn bump <new-version>For example: yarn bump 0.18.0-alpha.1. This command:
- Runs
cargo set-version <new-version>to updateCargo.toml - Runs
scripts/sync-version.jsto propagate the version topackage.jsonandtesting/package.json - Runs
yarn installto refreshyarn.lock
After bumping, also run cargo generate-lockfile if Cargo.lock is committed.
Checking version consistency (without modifying files):
node scripts/sync-version.js --checkThis is what the CI and the build scripts run to ensure all versions are aligned.
This project has adopted the CNCF Code of Conduct.