-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
41 lines (29 loc) · 864 Bytes
/
justfile
File metadata and controls
41 lines (29 loc) · 864 Bytes
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
# SDL
build-sdl:
cargo build --release --features sdl
run-sdl:
RUST_BACKTRACE=1 cargo run --features sdl -- -goobers
run-sdl-shareware:
RUST_BACKTRACE=1 cargo run --features sdl -- -config ./shareware_config.toml
run-sdl-profile:
sudo -E cargo flamegraph --features sdl --profile=dev -- run
run-sdl-demo NUM:
cargo run --features sdl -- -timedemo {{ NUM }}
# # Web
build-web:
wasm-pack build --out-dir web/pkg --release --target web --features web
run-web: build-web
miniserve ./web
coverage-sdl:
cargo tarpaulin --features sdl --ignore-tests --out Lcov
# # Testing
test:
RUST_BACKTRACE=1 RUSTFLAGS="-A unused" cargo test --features test
test-all: build-web test
# # Misc
profile:
sudo -E cargo flamegraph --bench core_loop -- --bench
bench:
cargo bench --features sdl
publish:
cargo publish --features sdl