-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathjustfile
More file actions
75 lines (63 loc) · 1.77 KB
/
Copy pathjustfile
File metadata and controls
75 lines (63 loc) · 1.77 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
alias a := audit
alias b := build
alias c := check
alias cs := check-sigs
alias d := doc
alias do := doc-open
alias f := fmt
alias l := lock
alias t := test
alias z := zizmor
alias p := pre-push
_default:
@echo "> rust-esplora-client"
@echo "> Bitcoin Esplora API client library\n"
@just --list
[doc: "Run `cargo audit` across all lockfiles"]
audit:
@echo "Updating and auditing fresh Cargo.lock"
cargo update
cargo audit --file Cargo.lock
@echo "\nAuditing Cargo-recent.lock"
cargo audit --file Cargo-recent.lock
@echo "\nAuditing Cargo-minimal.lock"
cargo audit --file Cargo-minimal.lock
[doc: "Build `rust-esplora-client`"]
build:
RBMT_LOG_LEVEL=progress cargo rbmt run build
[doc: "Check code formatting, compilation, and linting"]
check:
RBMT_LOG_LEVEL=progress cargo rbmt fmt --check
RBMT_LOG_LEVEL=progress cargo rbmt lint
RBMT_LOG_LEVEL=progress cargo rbmt docs
[doc: "Checks whether all commits in this branch are signed"]
check-sigs:
bash contrib/check-signatures.sh
[doc: "Generate documentation"]
doc:
RBMT_LOG_LEVEL=progress cargo rbmt docs
[doc: "Generate and open documentation"]
doc-open:
RBMT_LOG_LEVEL=progress cargo rbmt docs --open
[doc: "Format code"]
fmt:
RBMT_LOG_LEVEL=progress cargo rbmt fmt
[doc: "Regenerate Cargo-recent.lock and Cargo-minimal.lock"]
lock:
RBMT_LOG_LEVEL=verbose cargo rbmt lock
[doc: "Run tests"]
test:
RBMT_LOG_LEVEL=verbose cargo rbmt test --toolchain stable --lockfile recent
RBMT_LOG_LEVEL=verbose cargo rbmt test --toolchain msrv --lockfile minimal
[doc: "Run Zizmor Static Analysis"]
zizmor:
uvx zizmor .
[doc: "Run pre-push checks"]
pre-push:
@just lock
@just check
@just doc
@just test
@just audit
@just zizmor
@just check-sigs