-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
52 lines (39 loc) · 988 Bytes
/
Justfile
File metadata and controls
52 lines (39 loc) · 988 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
42
43
44
45
46
47
48
49
50
51
52
default:
just --list
# Run the application
run FILE_PATH="assets/demo.npy":
cargo run -- {{FILE_PATH}}
# Create .npy files according to scripts/npy_definitions.json
npy-create:
uv run ./scripts/npy_create.py
# Run all steps from the CI
ci: npy-create check format lint build test doc
# Run cargo check
check:
cargo check --all-targets --all-features
# Format all files
format: format-rust format-rest
# Format the code with rustfmt
format-rust:
cargo fmt --all
# Format all other files with dprint
format-rest:
dprint fmt
# Run clippy linter
lint:
cargo clippy --all-targets --all-features -- -D warnings
# Generate documentation
doc:
cargo doc --no-deps --all-features
# Generate documentation and open it in the browser
doc-open:
just doc && open target/doc/git_local_review/index.html
# Build the application
build:
cargo build
# Build all release artifacts
build-release:
./scripts/build_release.sh
# Run all tests
test:
cargo test --all-features