Truly fix docs generation

This commit is contained in:
Jonas Platte 2022-06-13 13:50:50 +02:00
parent cc97fe8db4
commit e22f8c5203
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C
2 changed files with 3 additions and 9 deletions

View File

@ -22,19 +22,11 @@ jobs:
with:
profile: minimal
# Nightly needed for use of unstable options
# Pinned because of https://github.com/rust-lang/cargo/issues/10744
toolchain: nightly-2022-03-01
toolchain: nightly
override: true
- uses: Swatinem/rust-cache@v1
# lock_api 0.4.7 doesn't compile with our currently-pinned nightly
- name: Downgrade lock_api
uses: actions-rs/cargo@v1
with:
command: update
args: -p lock_api --precise 0.4.6
- name: Build docs
uses: actions-rs/cargo@v1
with:

View File

@ -28,6 +28,8 @@ impl DocTask {
--all-features -Zrustdoc-map
"
)
// Work around https://github.com/rust-lang/cargo/issues/10744
.env("CARGO_TARGET_APPLIES_TO_HOST", "true")
.env("RUSTDOCFLAGS", rustdocflags);
if self.open {