| 1 | # Contributing guide |
| 2 | |
| 3 | Thank you for investing your time in contributing to the I/O Stream project. |
| 4 | |
| 5 | ## Development |
| 6 | |
| 7 | The development environment is managed by [Nix](https://nixos.org/download.html). |
| 8 | Running `nix-shell` will spawn a shell with everything you need to get started with the project. |
| 9 | |
| 10 | If you do not want to use Nix, you can either use [rustup](https://rust-lang.github.io/rustup/index.html): |
| 11 | |
| 12 | ```text |
| 13 | rustup update |
| 14 | ``` |
| 15 | |
| 16 | or install manually the following dependencies: |
| 17 | |
| 18 | - [cargo](https://doc.rust-lang.org/cargo/) |
| 19 | - [rustc](https://doc.rust-lang.org/stable/rustc/platform-support.html) |
| 20 | |
| 21 | ## Build |
| 22 | |
| 23 | ``` |
| 24 | cargo build |
| 25 | ``` |
| 26 | |
| 27 | You can disable [default features](https://doc.rust-lang.org/cargo/reference/features.html) with `--no-default-features` and enable features with `--features feat1,feat2,feat3`. |
| 28 | |
| 29 | Finally, you can build a release with `--release`: |
| 30 | |
| 31 | ``` |
| 32 | cargo build --no-default-features --features std --release |
| 33 | ``` |
| 34 | |
| 35 | ## Commit style |
| 36 | |
| 37 | I/O Stream follow the [conventional commits specification](https://www.conventionalcommits.org/en/v1.0.0/#summary). |