2020-11-21 04:14:50 +03:00
|
|
|
# Contribution guidelines
|
|
|
|
|
|
|
|
First off, thank you for considering contributing to delta.
|
|
|
|
|
|
|
|
If your contribution is not straightforward, please first discuss the change you
|
|
|
|
wish to make by creating a new issue before making the change.
|
|
|
|
|
|
|
|
## Developing
|
|
|
|
|
|
|
|
### Set up
|
|
|
|
|
|
|
|
This is no different than other Rust projects.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
git clone https://github.com/dandavison/delta/
|
|
|
|
cd delta
|
2020-12-05 07:50:41 +03:00
|
|
|
cargo build --release
|
2020-11-21 04:14:50 +03:00
|
|
|
```
|
|
|
|
|
2020-12-05 07:50:41 +03:00
|
|
|
The executable is then at `./target/release/delta`.
|
|
|
|
|
2020-11-21 04:14:50 +03:00
|
|
|
### Useful Commands
|
|
|
|
|
2020-12-05 07:50:41 +03:00
|
|
|
- Run all tests:
|
2020-11-21 04:14:50 +03:00
|
|
|
|
|
|
|
```shell
|
2020-12-05 07:50:41 +03:00
|
|
|
make test
|
2020-11-21 04:14:50 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
- Run Clippy:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cargo clippy
|
|
|
|
```
|
|
|
|
|
|
|
|
- Check to see if there are code formatting issues
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cargo fmt -- --check
|
|
|
|
```
|
|
|
|
|
|
|
|
- Format the code in the project
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cargo fmt
|
|
|
|
```
|
2020-12-05 07:50:41 +03:00
|
|
|
|
|
|
|
- Debug build
|
|
|
|
|
|
|
|
A "debug" build can be built using `cargo build` and
|
|
|
|
`./target/debug/delta`. This is faster to compile, but has much worse
|
|
|
|
performance than the release build.
|