2023-08-22 02:31:02 +00:00
|
|
|
default:
|
|
|
|
@just --list
|
|
|
|
|
|
|
|
# Cargo build everything.
|
|
|
|
build:
|
|
|
|
cargo build --workspace --all-targets --all-features
|
|
|
|
|
|
|
|
# Cargo check everything.
|
|
|
|
check:
|
|
|
|
cargo check --workspace --all-targets --all-features
|
|
|
|
|
|
|
|
# Lint everything.
|
|
|
|
lint:
|
2024-04-02 22:12:25 +00:00
|
|
|
cargo +$(cat .github/nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings
|
2023-08-22 02:31:02 +00:00
|
|
|
|
|
|
|
# Check the formatting
|
|
|
|
format:
|
2024-04-02 22:12:25 +00:00
|
|
|
cargo +$(cat .github/nightly-version) fmt --all --check
|
2023-10-18 02:50:45 +00:00
|
|
|
|
2024-01-09 23:54:39 +00:00
|
|
|
# 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
|
|
|
|
|
2024-01-29 22:00:56 +00:00
|
|
|
# doctests don't get run from workspace root with `cargo test`.
|
|
|
|
cargo test --quiet --workspace --doc || exit 1
|
2024-01-09 23:54:39 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2023-10-18 02:50:45 +00:00
|
|
|
# Update the recent and minimal lock files.
|
|
|
|
update-lock-files:
|
|
|
|
contrib/update-lock-files.sh
|