Skip to content

Commit 1e22d74

Browse files
committed
Add a justfile
The `just` command makes scripts and commands discoverable for new devs and old devs alike when switching between repos. Add a justfile copied from bitcoin with changes as required.
1 parent 5fa3623 commit 1e22d74

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

justfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
default:
2+
@just --list
3+
4+
# Cargo build everything.
5+
build:
6+
cargo build --all-targets --all-features
7+
8+
# Cargo check everything.
9+
check:
10+
cargo check --all-targets --all-features
11+
12+
# Lint everything.
13+
lint:
14+
cargo clippy --all-targets --all-features -- --deny warnings
15+
16+
# Check the formatting
17+
format:
18+
cargo +nightly fmt --check
19+
20+
# Quick and dirty CI useful for pre-push checks.
21+
sane: lint
22+
cargo test --quiet --all-targets --no-default-features > /dev/null || exit 1
23+
cargo test --quiet --all-targets > /dev/null || exit 1
24+
cargo test --quiet --all-targets --all-features > /dev/null || exit 1
25+
26+
# doctests don't get run from workspace root with `cargo test`.
27+
cargo test --quiet --doc || exit 1
28+
29+
# Make an attempt to catch feature gate problems in doctests
30+
cargo test --manifest-path Cargo.toml --doc --no-default-features > /dev/null || exit 1

0 commit comments

Comments
 (0)