forked from Deuxfleurs/diplonat
804 B
804 B
Contributing to Diplonat
Development guidelines
Code formatting
Our CI pipeline features a verification of the code format, using rustfmt.
Installing rustfmt
You can run rustfmt
with Rust 1.24 and above.
To install:
rustup component add rustfmt
Usage
To run on Diplonat, launch the following in the root directory:
cargo fmt --all
This will format the whole repository using the settigs defined in .rustfmt.toml
: soft tabs of 2 spaces.
Auto-format code
You can automate formatting in a number of ways:
- Setup your IDE to use
rustfmt
. - Setup a git hook to run
rustfmt
before each commit.