Hey! Want to help out with Sword? Awesome! Here’s how you can jump in:
- Fork this repo and make a new branch for your changes.
- When you’re ready, open a Pull Request to the
mainbranch. Tell what you changed and why. - Found a bug or have an idea? Open an Issue and let us know :)
- Use
rustfmtto keep code style. - Run the full local quality gate before opening a PR:
cargo fmt --all -- --checkcargo clippy -p sword --all-targets -- -D warningscargo clippy -p sword-web --all-targets --all-features -- -D warningscargo clippy -p sword-socketio --all-targets --all-features -- -D warningscargo clippy -p sword-grpc --all-targets --all-features -- -D warningscargo test -p sword-web --all-featurescargo test -p sword-socketio --all-featurescargo test -p sword-grpc --all-featuresRUSTDOCFLAGS="-D warnings" cargo doc -p sword --no-depsRUSTDOCFLAGS="-D warnings" cargo doc -p sword-web --no-deps --all-featuresRUSTDOCFLAGS="-D warnings" cargo doc -p sword-socketio --no-deps --all-featuresRUSTDOCFLAGS="-D warnings" cargo doc -p sword-grpc --no-deps --all-features
- Try to write clear code and add comments if something’s tricky.
- If you add something new, add rustdocs or README.
- Install Rust: https://rustup.rs
- Clone:
git clone https://github.com/sword-web/sword - Go to the folder:
cd sword - Build:
cargo build - Test:
cargo test
Thanks for helping make Sword better!