diff --git a/.cargo/config.toml b/.cargo/config.toml index 4d27c747..f9c7f235 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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 diff --git a/xtask/src/doc.rs b/xtask/src/doc.rs index ac0cae99..ea36191c 100644 --- a/xtask/src/doc.rs +++ b/xtask/src/doc.rs @@ -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