Simplify local development just recipes
What changed, and why it matters
This commit only changes developer helper commands in a 'justfile' (a task runner configuration). It removes some convenience recipes for building/checking/formatting the whole workspace and replaces them with crate-specific versions. There is no change to the actual Rust Bitcoin library code, no change to how the software runs for users, and no security relevance.
No security action needed. Treat as a normal non-security development tooling change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies only justfile, deleting recipes build, check, fmt, format, and sane, and adding parameterized @check and @fmt recipes that operate on explicitly listed crates. No source code, dependencies, build configuration, or cryptographic logic is touched. The change is purely a local-development workflow simplification.
Changed components
justfileInspect captured patch +8 / −24
diff --git a/justfile b/justfile
index 5a4d0ed0..f47ff1d1 100644
--- a/justfile
+++ b/justfile
@@ -29,30 +29,14 @@ docsrs: (ci "docsrs" NIGHTLY_VERSION)
# Run benchmarks.
bench: (ci "bench")
-# Cargo build everything.
-build:
- cargo build --workspace --all-targets --all-features
-
-# Cargo check everything.
-check:
- cargo check --workspace --all-targets --all-features
-
-# Run cargo fmt
-fmt:
- cargo +$(cat ./nightly-version) fmt --all
-
-# Check the formatting
-format:
- cargo +$(cat ./nightly-version) fmt --all --check
-
-# 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
+# Sanity check given crates.
+@check +crates:
+ cargo test --quiet -p {{replace(crates, " ", " -p ")}} --no-default-features
+ cargo test --quiet -p {{replace(crates, " ", " -p ")}} --all-features
+
+# Format given crates.
+@fmt +crates:
+ cargo +{{NIGHTLY_VERSION}} fmt -p {{replace(crates, " ", " -p ")}}
# Check for API changes.
check-api:
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.