To get the development installation with all the necessary dependencies for linting, testing, and building the documentation, run the following:
git clone https://github.com/young-rocks/zkmove-lite.git
cd zkmove-lite
./scripts/dev_setup.sh
source $HOME/.cargo/env
cargo build
All code formatting is enforced with rustfmt with a project-specific configuration and checked by GitHub action.
Rust code should follow the rust coding guidelines:
Changes to the project are proposed through pull requests. The general pull request workflow is as follows:
- Fork the repo and create a topic branch off of
master
. - If you have added code that should be tested, add unit tests.
- Check by
cargo fmt -- --check
andcargo clippy --all-targets -- -D warnings
. - Make sure your local workspace is clean and all changed file has been committed.
- Submit your pull request.
- Waiting for the github action check to pass and responding to reviewer feedback.
If your pull request is out-of-date and needs to be updated because master
has advanced, you should rebase your branch on top of the latest main by
doing the following:
git fetch upstream
git checkout topic
git rebase -i upstream/master
You should not update your branch by merging the latest main into your branch. Merge commits included in PRs tend to make it more difficult for the reviewer to understand the change being made, especially if the merge wasn't clean and needed conflicts to be resolved. As such, PRs with merge commits will be rejected.
We uses GitHub issues to track bugs. Please include necessary information and instructions to reproduce your issue.