-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (38 loc) · 1 KB
/
justfile
File metadata and controls
50 lines (38 loc) · 1 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
# default recipe to display help information
default:
@just --list
# build entire project
build:
@cargo build
# run test on all workspace
test:
@cargo test --workspace --all-features
# run clippy with heavy config
lint:
@cargo clippy --workspace
# clean build directory
clean:
@cargo clean
# check formatting, return non-zero if not formatted
check-fmt:
@cargo fmt --all --check
# format all code
fmt:
@cargo fmt
set positional-arguments
# run <rom> in debug mode
run rom:
@cargo run -- $1
# run <rom> in debug mode with logging to file
run-log rom:
@cargo run -- $1 --log-to-file
# run <rom> in release mode, better for performance
run-release rom:
@cargo run --release -- $1
# run <rom> in release mode with logging to file
run-release-log rom:
@cargo run --release -- $1 --log-to-file
# generate and open documentation in browser (no dependencies, includes private items)
doc:
@rm -rf target/doc
@cargo doc --workspace --no-deps --document-private-items --open