-
Notifications
You must be signed in to change notification settings - Fork 5
/
justfile
62 lines (41 loc) · 1.51 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
set shell := ["nu", "-c"]
default:
@just --list --unsorted;
build_no_default:
cargo build --no-default-features
build_default:
cargo build
build_serde:
cargo build --no-default-features --features serde
build_bincode_1_3:
cargo build --features bincode_1_3
build_no_default_bincode_1_3:
cargo build --no-default-features --features serde --features bincode_1_3
build_bincode_2_rc:
cargo build --features bincode_2_rc
build_no_default_bincode_2_rc:
cargo build --no-default-features --features serde --features bincode_2_rc
build_postcard_1_0:
cargo build --features postcard_1_0
build_no_default_postcard_1_0:
cargo build --no-default-features --features serde --features postcard_1_0
build_all: build_no_default build_default build_serde build_bincode_1_3 build_no_default_bincode_1_3 build_bincode_2_rc build_no_default_bincode_2_rc build_postcard_1_0 build_no_default_postcard_1_0
_tests_crate args='':
cd tests_crate; \
cargo test {{args}}
test_no_default:
@just _tests_crate '--no-default-features'
test_default:
@just _tests_crate args=''
test_bincode_1_3:
@just _tests_crate '--features bincode_1_3'
test_bincode_2_rc:
@just _tests_crate '--features bincode_2_rc'
test_postcard_1_0:
@just _tests_crate '--features postcard_1_0'
test_docs:
cargo test --doc --all-features
test_all: test_docs test_no_default test_default test_bincode_1_3 test_bincode_2_rc test_postcard_1_0
bench_overhead:
cargo bench --bench overhead
bench_all: bench_overhead