Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.94 KB

CONTRIBUTING.md

File metadata and controls

62 lines (44 loc) · 1.94 KB

Contributing

Welcome, we really appreciate if you're considering to contribute to dra!

Development

  1. Fork this repo
  2. Clone your forked repo
    git clone https://github.com/<username>/dra && cd dra
    
  3. Create a new branch
  4. Install Rust >= 1.56.0 and run make install-components to install rustfmt and clippy
  5. Build project with make build

Other make targets:

  • test: run unit tests
  • integration-tests: run integration tests. Read the docs for more info.
  • format: format code with rustfmt
  • format-check: check code is properly formatted
  • lint: run cargo-clippy

Code style

Cross compilation

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

Create an issue

Before submitting a new issue, please search the issues to make sure there isn't a similar issue that already exist.

License

By contributing, you agree that your contributions will be licensed under MIT License.