-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjustfile
32 lines (29 loc) · 1.44 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# performs a build with the default toolchain
default: (build "")
# performs a build with the given toolchain
build toolchain:
cargo {{ toolchain }} --version
cargo {{ toolchain }} clean
cargo {{ toolchain }} build --verbose
cargo {{ toolchain }} clippy --verbose --all-targets --all-features -- -D warnings
cargo {{ toolchain }} fmt --all -- --check
cargo {{ toolchain }} test --verbose
cargo {{ toolchain }} doc
cargo {{ toolchain }} test --verbose --no-default-features
cargo {{ toolchain }} test --verbose --no-default-features --features "rand"
cargo {{ toolchain }} test --verbose --no-default-features --features "chrono"
cargo {{ toolchain }} test --verbose --no-default-features --features "time"
cargo {{ toolchain }} test --verbose --no-default-features --features "serde"
cargo {{ toolchain }} test --verbose --no-default-features --features "chrono rand serde"
cargo {{ toolchain }} test --verbose --no-default-features --features "time rand serde"
cargo {{ toolchain }} test --verbose --no-default-features --features "chrono time rand serde"
cargo {{ toolchain }} test --verbose --no-default-features --features "chrono time rand serde rocket"
# perform a build for every supported toolchain
all:
just build "+1.74.0"
just build "+stable"
just build "+beta"
just build "+nightly"
# perform a build using Minimum Supported Rust Version toolchain
msrv:
just build "+1.74.0"