-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
68 lines (55 loc) · 1.68 KB
/
justfile
File metadata and controls
68 lines (55 loc) · 1.68 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
alias b := build
alias c := check
alias cf := check-features
alias cs := check-sigs
alias d := doc
alias do := doc-open
alias f := fmt
alias l := lock
alias m := msrv
alias p := pre-push
alias t := test
alias tv := test-version
_default:
@echo "> bdk-bitcoind-client"
@echo "> An experimental \`bitcoind\` RPC client for BDK"
@echo ""
@just --list
[doc: "Build the `bdk-bitcoind-client`"]
build:
cargo build
[doc: "Check code formatting, compilation, and linting"]
check:
cargo rbmt fmt --check
cargo rbmt lint
cargo rbmt docs
[doc: "Check that all feature combinations compile"]
check-features:
cargo rbmt test --toolchain stable --lock-file recent
[doc: "Check if all commits in this branch are PGP-signed"]
check-sigs:
bash contrib/check-signatures.sh
[doc: "Generate documentation"]
doc:
cargo rbmt docs
[doc: "Generate and open documetation"]
doc-open:
cargo rbmt docs --open
[doc: "Format code"]
fmt:
cargo rbmt fmt
[doc: "Regenerate `Cargo-recent.lock` and `Cargo-minimal.lock`"]
lock:
cargo rbmt lock
[doc: "Verify the library builds with the MSRV toolchain (1.85.0)"]
msrv:
cargo rbmt test --toolchain msrv --lock-file minimal
[doc: "Run all tests on the workspace with all features"]
test:
cargo rbmt test --toolchain stable --lock-file recent
# TODO: update this when https://github.com/rust-bitcoin/rust-bitcoin-maintainer-tools/issues/113 is fixed
[doc: "Run tests against a specific Bitcoin Core version: 30_0, 29_0, 28_0"]
test-version VERSION:
cargo test --no-default-features --features {{VERSION}}
[doc: "Run pre-push suite: lock, check-sigs, fmt, check, test, and msrv"]
pre-push: lock check-sigs fmt check test msrv