Thank you for taking the time to contribute to Polylang!
The following is a set of guidelines for contributing to Polylang. Remember that these are guidelines, not strict rules. So use your judgment, but
adhering to the guidelines as closely as possible will make the contribution process smoother.
We welcome all kinds of contributions - bug reports, feature requests, or enhancement requests.
-
Create a tracking issue in the
Polylangrepo here - https://github.com/polybase/polylang/issues. -
Fork the
Polylangproject, and create a clone from your fork. -
Make the code changes in a branch of your clone. Ensure that you test your changes locally.
-
Create a Pull Request (PR) with your code changes linking the issue created in step 1.
The Polylang repository is a modular Cargo workspace comprising of the following packages with the package
name in parentheses:
- parser (
polylang_parser) - prover (
polylang-prover) - abi (
abi) - miden-run (
miden-run) - error (
error) - tests (
tests)
in addition to the Polylang root package.
The first step is to fork the Polylang repository on Github, and clone your fork. Navigate to your clone:
$ cd polylang # this is your cloneNow build the project:
$ cargo buildOr, for a release build:
$ cargo build --releaseRun the tests to ensure that everything is working as expected.
To run all tests:
$ cargo test --workspace --all-targetsTo run tests for a specific package:
$ cargo test -p <package-name>Note that the <package-name> must be the value of the name field in the package's Cargo.toml file, and not the name in the workspace's members list.
For instance, to run the tests for the Polylang prover:
$ cargo test -p polylang-prover