-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJustfile
58 lines (39 loc) · 1.23 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
case:=' '
start:
cargo web start
check:
cargo check
recheck:
cargo watch -x check
run:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo run
release:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo run --release
build_release:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build --release
build:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build
debug-build:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build
debug-run:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo run
rerun:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo watch -x run
test test_case=case:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo test {{test_case}}
test_print test_case=case:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo test {{test_case}} -- --nocapture
retest test_case=case:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo watch -x test {{test_case}}
retest_print test_case=case:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo watch -x test {{test_case}} -- --nocapture
sizes:
RUSTFLAGS="-C link-arg=-fuse-ld=lld -Z print-type-sizes" cargo +nightly build
debug:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" RUST_BACKTRACE=1 cargo run
flame:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo flamegraph
clean:
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo clean
sloc:
cloc */src/*.rs