-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
49 lines (35 loc) · 872 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
48
49
@_list:
just --list --unsorted
alias r := run
bt := '0'
log := "warn"
export JUST_LOG := log
# Wtach the source files and run `just verify` when sources change
watch:
cargo watch -c -- just verify
run:
cargo run
# Run the static code analysis
lint:
cargo fmt --check
cargo clippy --all-targets
# Clean up compilation output
clean:
rm -rf target
rm -f Cargo.lock
rm -rf node_modules
# Run the tests
test:
cargo test
# Perform all verifications (compile, test, lint etc.)
verify: test lint
fmt:
cargo fmt
# run the release process in dry run mode (requires `npm`, a `GITHUB_TOKEN` and a `CARGO_REGISTRY_TOKEN`)
release *args:
npm install --no-save conventional-changelog-conventionalcommits @semantic-release/exec
npx semantic-release {{args}}
check-all:
cargo fmt --all --check
cargo clippy -- -D warnings
cargo check --all-features --lib