-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathJustfile
More file actions
56 lines (44 loc) · 1.08 KB
/
Justfile
File metadata and controls
56 lines (44 loc) · 1.08 KB
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
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 --features valuable
cargo test --features rust_decimal
cargo test --all-features
test-ui:
cargo test --features ui
cargo test --features "ui rust_decimal arbitrary"
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
cargo test
fi
done
typos:
which typos >/dev/null || cargo install typos-cli
typos