From 20d00919f32007ed9f42d36545e11c1496dd2dfd Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 13 Jun 2022 14:09:13 +0200 Subject: [PATCH] Enable rustdoc-map nightly feature via .cargo/config.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … instead of using -Z on the command line. --- .cargo/config.toml | 1 + xtask/src/doc.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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