| 1 |
all: build test |
| 2 |
all-release: build-release test-release |
| 3 |
|
| 4 |
MIN_RUST := "1.31.0" |
| 5 |
|
| 6 |
|
| 7 |
# compiles the code |
| 8 |
build: |
| 9 |
cargo +{{MIN_RUST}} build |
| 10 |
cargo +stable build |
| 11 |
|
| 12 |
# compiles the code in release mode |
| 13 |
build-release: |
| 14 |
cargo +{{MIN_RUST}} build --release --verbose |
| 15 |
cargo +stable build --release --verbose |
| 16 |
|
| 17 |
|
| 18 |
# runs unit tests |
| 19 |
test: |
| 20 |
cargo +{{MIN_RUST}} test --all -- --quiet |
| 21 |
cargo +stable test --all -- --quiet |
| 22 |
|
| 23 |
# runs unit tests in release mode |
| 24 |
test-release: |
| 25 |
cargo +{{MIN_RUST}} test --all --release --verbose |
| 26 |
cargo +stable test --all --release --verbose |