Skip to content

Commit

Permalink
Enable rustdoc-map nightly feature via .cargo/config.toml
Browse files Browse the repository at this point in the history
… instead of using -Z on the command line.
  • Loading branch information
jplatte committed Jun 13, 2022
1 parent 9c32c57 commit 20d0091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,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
3 changes: 1 addition & 2 deletions xtask/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ impl DocTask {
// Keep in sync with .github/workflows/docs.yml
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
--all-features -Zrustdoc-map
"
)
// Work around https://github.com/rust-lang/cargo/issues/10744
Expand Down

0 comments on commit 20d0091

Please sign in to comment.