-
Notifications
You must be signed in to change notification settings - Fork 25
/
Justfile
52 lines (40 loc) · 966 Bytes
/
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
all: fmt test-all clippy examples typos
test-all: test test-features test-ui test-doc
test:
cargo test
test-features:
cargo test --features serde
cargo test --features regex
cargo test --features new_unchecked
cargo test --features schemars08
cargo test --features arbitrary
cargo test --all-features
test-ui:
cargo test --features ui
test-doc:
cd nutype && cargo test --doc --all-features
cd nutype_macros && cargo test --doc --all-features
fmt:
cargo fmt
watch:
cargo watch -x test
watch-dummy:
cargo watch -s "cd dummy && cargo run"
clippy:
cargo clippy -- -D warnings
examples:
#!/usr/bin/env bash
set -euxo pipefail
ROOT_DIR=$(pwd)
for EXAMPLE in `ls examples`; do
cd $ROOT_DIR/examples/$EXAMPLE;
if [[ "$EXAMPLE" == "no_std_example" ]]
then
cargo build
else
cargo run
fi
done
typos:
which typos >/dev/null || cargo install typos-cli
typos