File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change
1
+ set positional-arguments
2
+
1
3
default :
2
4
@ just --list
3
5
@@ -11,8 +13,31 @@ check:
11
13
12
14
# Lint everything.
13
15
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
15
23
16
24
# Check the formatting
17
25
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
You can’t perform that action at this time.
0 commit comments