Enable rustdoc-map nightly feature via .cargo/config.toml

… instead of using -Z on the command line.
This commit is contained in:
Jonas Platte
2022-06-13 14:10:54 +02:00
committed by Jonas Platte
parent d07001a581
commit e3edf0139a
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -37,4 +37,5 @@ rustflags = [
# activate the target-applies-to-host feature.
# Required for `target-applies-to-host` at the top to take effect.
[unstable]
rustdoc-map = true
target-applies-to-host = true
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs -Dwarnings"
with:
command: doc
args: --no-deps --workspace --exclude matrix-sdk-crypto-js --exclude matrix-sdk-crypto-nodejs --features docsrs -Zrustdoc-map
args: --no-deps --workspace --exclude matrix-sdk-crypto-js --exclude matrix-sdk-crypto-nodejs --features docsrs
- name: Deploy docs
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
+1 -1
View File
@@ -51,7 +51,7 @@ fn build_docs(
}
// Keep in sync with .github/workflows/docs.yml
cmd!("rustup run nightly cargo doc --no-deps --workspace --features docsrs -Zrustdoc-map")
cmd!("rustup run nightly cargo doc --no-deps --workspace --features docsrs")
// Work around https://github.com/rust-lang/cargo/issues/10744
.env("CARGO_TARGET_APPLIES_TO_HOST", "true")
.env("RUSTDOCFLAGS", rustdocflags)