-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (36 loc) · 1.22 KB
/
justfile
File metadata and controls
44 lines (36 loc) · 1.22 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
alias b := build
alias c := check
alias f := fmt
alias t := test
alias p := pre-push
_default:
@just --list
# Build the project
build:
cargo build
# Check code: formatting, compilation, linting, doc comments, and commit signature
check:
cargo +nightly fmt --all -- --check
@just _check-features
cargo clippy --all-features --all-targets -- -D warnings
cargo rustdoc --all-features -- -D warnings
@[ "$(git log --pretty='format:%G?' -1 HEAD)" = "N" ] && \
echo "\n⚠️ Unsigned commit: BDK requires that commits be signed." || \
true
# Check feature configurations (matches CI)
_check-features:
cargo check --features "default"
cargo check --no-default-features
cargo check --no-default-features --features "proxy"
cargo check --no-default-features --features "openssl"
cargo check --no-default-features --features "rustls"
cargo check --no-default-features --features "rustls-ring"
cargo check --no-default-features --features "proxy,openssl,rustls,rustls-ring"
# Format all code
fmt:
cargo +nightly fmt
# Run all tests on the workspace with all features
test:
cargo test --all-features -- --test-threads=1
# Run pre-push suite: format, check, and test
pre-push: fmt check test