Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

just: Update justfile #19

Merged
merged 1 commit into from
Dec 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set positional-arguments

default:
@just --list

Expand All @@ -11,8 +13,31 @@ check:

# Lint everything.
lint:
cargo clippy --workspace --all-targets --all-features -- --deny warnings
cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings
# lint warnings get inhibited unless we use `--nocapture`
cargo test --quiet --workspace --doc -- --nocapture

# Run cargo fmt
fmt:
cargo +$(cat ./nightly-version) fmt --all

# Check the formatting
format:
cargo +nightly fmt --all --check
cargo +$(cat ./nightly-version) fmt --all --check

# Generate documentation.
docsrs *flags:
RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +$(cat ./nightly-version) doc --all-features {{flags}}

# Quick and dirty CI useful for pre-push checks.
sane: lint
cargo test --quiet --workspace --all-targets --no-default-features > /dev/null || exit 1
cargo test --quiet --workspace --all-targets > /dev/null || exit 1
cargo test --quiet --workspace --all-targets --all-features > /dev/null || exit 1

# Make an attempt to catch feature gate problems in doctests
cargo test --manifest-path bitcoin/Cargo.toml --doc --no-default-features > /dev/null || exit 1

# Update the recent and minimal lock files.
update-lock-files:
contrib/update-lock-files.sh
Loading