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
- Install Rust
>= 1.56.0
and runmake install-components
to installrustfmt
andclippy
- 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 withrustfmt
format-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
main
branch. -
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-gnueabihf
Then you can build and test (only unit tests) by running:
make build
make test
Before submitting a new issue, please search the issues to make sure there isn't a similar issue that already exist.
By contributing, you agree that your contributions will be licensed under MIT License.