-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
47 lines (40 loc) · 921 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
41
42
43
44
45
46
47
alias r := run
alias rr := run-release
alias f := fmt
alias l := lint
alias d := doc
alias uf := update-flake-dependencies
alias uc := update-cargo-dependencies
alias pj := prettify-json
run:
cargo run
fmt:
cargo fmt
lint:
cargo clippy
nix run nixpkgs#typos
doc:
cargo doc --open --offline
run-release:
cargo run --release
update-flake-dependencies:
nix flake update --commit-lock-file
# Update and then commit the `Cargo.lock` file
update-cargo-dependencies:
cargo update
git add Cargo.lock
git commit Cargo.lock -m "update(cargo): \`Cargo.lock\`"
error:
export RUST_LOG=error
info:
export RUST_LOG=info
debug:
export RUST_LOG=debug
prettify-json:
fd ".-debnix.json" outputs --exec just prettify-json-exec {}
prettify-json-exec FILE:
cat {{FILE}} | jq . {{FILE}} | sponge {{FILE}}
# regenerate all generated inputs
regenerate:
just prettify-json
cargo run --release -- --generate-map ./outputs/