Skip to content

Commit 4461b12

Browse files
committed
add just rustdoc
1 parent 0aee130 commit 4461b12

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: dtolnay/rust-toolchain@stable
1818
with:
1919
components: rustfmt, clippy
20+
- uses: taiki-e/install-action@just
2021
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
2122
with:
2223
key: partition-${{ matrix.partition }}

Justfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ set positional-arguments
22

33
# Note: help messages should be 1 line long as required by just.
44

5+
# Build docs for crates and direct dependencies
6+
rustdoc *args:
7+
@cargo tree --depth 1 -e normal --prefix none --workspace --all-features \
8+
| gawk '{ gsub(" v", "@", $0); printf("%s\n", $1); }' \
9+
| xargs printf -- '-p %s\n' \
10+
| RUSTC_BOOTSTRAP=1 RUSTDOCFLAGS='--cfg=doc_cfg' xargs cargo doc --no-deps --all-features {{args}}
11+
512
# Run cargo release in CI.
613
ci-cargo-release:
714
# cargo-release requires a release off a branch.

0 commit comments

Comments
 (0)