| 1 |
# Development Guide |
| 2 |
|
| 3 |
## Requirements |
| 4 |
|
| 5 |
| Toolchain | Version | |
| 6 |
| :-----------------------------------: | :-----: | |
| 7 |
| [Rust](https://rustup.rs/) | ^1.63.0 | |
| 8 |
| [just](https://github.com/casey/just) | ^1.36.0 | |
| 9 |
|
| 10 |
## Workflow |
| 11 |
|
| 12 |
### Download source code |
| 13 |
|
| 14 |
```bash |
| 15 |
git clone https://github.com/Nugine/outref.git |
| 16 |
cd outref |
| 17 |
``` |
| 18 |
|
| 19 |
### Run basic checks and tests |
| 20 |
|
| 21 |
```bash |
| 22 |
just dev |
| 23 |
``` |
| 24 |
|
| 25 |
### Open documentation |
| 26 |
|
| 27 |
```bash |
| 28 |
just doc |
| 29 |
``` |
| 30 |
|
| 31 |
### Run CI checks locally |
| 32 |
|
| 33 |
```bash |
| 34 |
just ci |
| 35 |
``` |
| 36 |
|
| 37 |
## Git |
| 38 |
|
| 39 |
### Commit Message |
| 40 |
|
| 41 |
We follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification. |
| 42 |
|
| 43 |
### Pull Request |
| 44 |
|
| 45 |
Before creating or updating a pull request, please make sure to run the following commands: |
| 46 |
|
| 47 |
```bash |
| 48 |
just dev |
| 49 |
``` |
| 50 |
|
| 51 |
It's recommended to resolve any warnings or errors before submitting. |
| 52 |
|
| 53 |
Note that some lints may be too restrict. You can allow some of them if you think they are not helpful to the code quality. |