Skip to content

Commit 2774d0f

Browse files
committed
just: Update justfile
Now we use a specific nightly version update the `justfile` to mirror `rust-bitcoin`.
1 parent 3077b93 commit 2774d0f

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

justfile

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set positional-arguments
2+
13
default:
24
@just --list
35

@@ -11,8 +13,31 @@ check:
1113

1214
# Lint everything.
1315
lint:
14-
cargo clippy --workspace --all-targets --all-features -- --deny warnings
16+
cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings
17+
# lint warnings get inhibited unless we use `--nocapture`
18+
cargo test --quiet --workspace --doc -- --nocapture
19+
20+
# Run cargo fmt
21+
fmt:
22+
cargo +$(cat ./nightly-version) fmt --all
1523

1624
# Check the formatting
1725
format:
18-
cargo +nightly fmt --all --check
26+
cargo +$(cat ./nightly-version) fmt --all --check
27+
28+
# Generate documentation.
29+
docsrs *flags:
30+
RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +$(cat ./nightly-version) doc --all-features {{flags}}
31+
32+
# Quick and dirty CI useful for pre-push checks.
33+
sane: lint
34+
cargo test --quiet --workspace --all-targets --no-default-features > /dev/null || exit 1
35+
cargo test --quiet --workspace --all-targets > /dev/null || exit 1
36+
cargo test --quiet --workspace --all-targets --all-features > /dev/null || exit 1
37+
38+
# Make an attempt to catch feature gate problems in doctests
39+
cargo test --manifest-path bitcoin/Cargo.toml --doc --no-default-features > /dev/null || exit 1
40+
41+
# Update the recent and minimal lock files.
42+
update-lock-files:
43+
contrib/update-lock-files.sh

0 commit comments

Comments
 (0)