Welcome, we really appreciate if you're considering to contribute to dra!
- Fork this repo
- Clone your forked repo
git clone https://github.com/<username>/dra && cd dra - Create a new branch with
git checkout -b my-branch - Install Rust stable and run
make install-componentsto installrustfmtandclippy - Build project with
make build
Other make targets:
test: run unit testsintegration-tests: run integration tests. Read the docs for more info.format: format code withrustfmtformat-check: check code is properly formattedlint: runcargo-clippy
-
Always format the code with
rustfmt -
Split your changes into separate atomic commits (where the build, tests and the system are all functioning).
-
Make sure your commits are rebased on the
mainbranch. -
The commit message must have the format "category: brief description". The category should be the name of a rust module or directory.
See this commits for reference:
Install cross to cross compile.
Export these environment variables:
export CARGO_BIN=cross
# Change CARGO_TARGET value with the desired target (https://doc.rust-lang.org/rustc/platform-support.html)
export CARGO_TARGET=arm-unknown-linux-gnueabihfThen you can build and test (only unit tests) by running:
make build
make testBy contributing, you agree that your contributions will be licensed under MIT License.