Skip to content

Commit e3edf01

Browse files
committed
Enable rustdoc-map nightly feature via .cargo/config.toml
… instead of using -Z on the command line.
1 parent d07001a commit e3edf01

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ rustflags = [
3737
# activate the target-applies-to-host feature.
3838
# Required for `target-applies-to-host` at the top to take effect.
3939
[unstable]
40+
rustdoc-map = true
4041
target-applies-to-host = true

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs -Dwarnings"
3535
with:
3636
command: doc
37-
args: --no-deps --workspace --exclude matrix-sdk-crypto-js --exclude matrix-sdk-crypto-nodejs --features docsrs -Zrustdoc-map
37+
args: --no-deps --workspace --exclude matrix-sdk-crypto-js --exclude matrix-sdk-crypto-nodejs --features docsrs
3838

3939
- name: Deploy docs
4040
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn build_docs(
5151
}
5252

5353
// Keep in sync with .github/workflows/docs.yml
54-
cmd!("rustup run nightly cargo doc --no-deps --workspace --features docsrs -Zrustdoc-map")
54+
cmd!("rustup run nightly cargo doc --no-deps --workspace --features docsrs")
5555
// Work around https://github.com/rust-lang/cargo/issues/10744
5656
.env("CARGO_TARGET_APPLIES_TO_HOST", "true")
5757
.env("RUSTDOCFLAGS", rustdocflags)

0 commit comments

Comments
 (0)