-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjustfile
More file actions
33 lines (27 loc) · 981 Bytes
/
justfile
File metadata and controls
33 lines (27 loc) · 981 Bytes
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
alias b := build
alias c := check
alias f := fmt
alias t := test
alias p := pre-push
[doc("List all available commands.")]
default:
just --list --unsorted
[doc("Build the project")]
build:
cargo build --workspace --exclude sp_fuzz
[doc("Check code: formatting, compilation, linting, and commit signature")]
check:
cargo +nightly fmt --all -- --check
cargo check --workspace --exclude sp_fuzz --exclude bdk_sp_cli_v1 --exclude bdk_sp_cli_v2 --all-features
cargo clippy --all-features --all-targets -- -D warnings
@[ "$(git log --pretty='format:%G?' -1 HEAD)" = "N" ] && \
echo "\n⚠️ Unsigned commit: BDK requires that commits be signed." || \
true
[doc("Format all code")]
fmt:
cargo +nightly fmt
[doc("Run all tests on the workspace with all features")]
test:
cargo test --workspace --exclude sp_fuzz --exclude bdk_sp_cli_v1 --exclude bdk_sp_cli_v2 --all-features
[doc("Run pre-push suite: format, check, and test")]
pre-push: fmt check test