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:09:13 +02:00
parent 9c32c57dbc
commit 20d00919f3
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C
2 changed files with 2 additions and 2 deletions

View File

@ -49,4 +49,5 @@ rustflags = [
# activate the target-applies-to-host feature. # activate the target-applies-to-host feature.
# Required for `target-applies-to-host` at the top to take effect. # Required for `target-applies-to-host` at the top to take effect.
[unstable] [unstable]
rustdoc-map = true
target-applies-to-host = true target-applies-to-host = true

View File

@ -23,9 +23,8 @@ impl DocTask {
// Keep in sync with .github/workflows/docs.yml // Keep in sync with .github/workflows/docs.yml
let mut cmd = cmd!( let mut cmd = cmd!(
" "
rustup run nightly cargo doc --no-deps --workspace rustup run nightly cargo doc --all-features --no-deps --workspace
--exclude ruma-macros --exclude ruma-identifiers-validation --exclude xtask --exclude ruma-macros --exclude ruma-identifiers-validation --exclude xtask
--all-features -Zrustdoc-map
" "
) )
// Work around https://github.com/rust-lang/cargo/issues/10744 // Work around https://github.com/rust-lang/cargo/issues/10744