-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
80 lines (63 loc) · 1.84 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/env just --justfile
set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
alias b := build
alias c := check
alias cc := code-coverage
alias d := doc
alias l := lint
alias la := lint-all-features
alias ln := lint-no-std
alias t := test
alias ta := test-all-features
alias tn := test-no-std
# list recipies
default:
just --list
# build the crate for debugging
build:
cargo build --all-features
# check syntax in all targets
check:
cargo check --all-targets --all-features
# linting code using Clippy
lint:
just lint-all-features
just lint-no-std
just lint-no-features
# linting code using Clippy with all features enabled
lint-all-features:
cargo clippy --all-targets --all-features
# linting code using Clippy for no-std environment
lint-no-std:
cargo clippy --all-targets --no-default-features --features "colored, float-cmp"
# linting code using Clippy with no features enabled
lint-no-features:
cargo clippy --all-targets --no-default-features
# run all tests
test:
just test-all-features
just test-no-std
just test-no-features
# run tests for all features
test-all-features:
cargo test --all-features
# run tests for no-std environment
test-no-std:
cargo test --no-default-features --features "colored, float-cmp"
# run tests with no features enabled
test-no-features:
cargo test --no-default-features
# run code coverage (does not include doc-tests)
code-coverage:
cargo +nightly llvm-cov clean
cargo +nightly llvm-cov --branch --all-features --no-report
cargo +nightly llvm-cov report --html --open --ignore-filename-regex "tests|test_dsl"
# build the crate for release
build-release:
cargo build --release
# clean the workspace
clean:
cargo clean
# generate and open docs locally
doc $RUSTDOCFLAGS="--cfg docsrs":
cargo +nightly doc --all-features --no-deps --open