-
Notifications
You must be signed in to change notification settings - Fork 1
/
Justfile
40 lines (32 loc) · 1014 Bytes
/
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
# List the available recipes
default:
@just --list --unsorted
# Run the CLI application with the given parameters
cli *ARGS:
cargo run --bin clovers-cli --release -- {{ARGS}}
# Build and open the documentation
doc:
cargo doc --no-deps --open
# Render all the test scenes available in the repository
all-scenes *ARGS:
DATE=$(date -u +%s); \
mkdir -p renders/$DATE; \
for scene in $(ls scenes/ |grep json); \
do just cli render --output renders/$DATE/${scene%.json}.png {{ARGS}} scenes/$scene; \
done;
# Profiling helper
profile *ARGS:
cargo build --profile profiling; \
samply record -- ./target/profiling/clovers-cli {{ARGS}}
# Run all tests
test:
cargo nextest run --cargo-quiet
# Run all benchmarks
bench *ARGS:
cargo bench --quiet {{ARGS}}
# Verify no_std compatibility
nostd:
cargo clippy -q --release --package clovers --lib --no-default-features
# Check the assembly of a given function
asm name:
cargo asm --release --package clovers --lib --no-default-features {{name}}