From ee3c2372fbe0019ec19b6327213c6acfade435fe Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 16 Sep 2025 16:29:21 -0700 Subject: [PATCH] Opt in to generate-macro-expansion when building on docs.rs --- serde/Cargo.toml | 1 + serde_core/Cargo.toml | 1 + serde_derive/Cargo.toml | 1 + serde_derive_internals/Cargo.toml | 1 + 4 files changed, 4 insertions(+) diff --git a/serde/Cargo.toml b/serde/Cargo.toml index 947ad8ec..05cce2a7 100644 --- a/serde/Cargo.toml +++ b/serde/Cargo.toml @@ -26,6 +26,7 @@ features = ["derive", "rc", "unstable"] targets = ["x86_64-unknown-linux-gnu"] rustdoc-args = [ "--generate-link-to-definition", + "--generate-macro-expansion", "--extern-html-root-url=core=https://doc.rust-lang.org", "--extern-html-root-url=alloc=https://doc.rust-lang.org", "--extern-html-root-url=std=https://doc.rust-lang.org", diff --git a/serde_core/Cargo.toml b/serde_core/Cargo.toml index 753278c4..3333f0a5 100644 --- a/serde_core/Cargo.toml +++ b/serde_core/Cargo.toml @@ -25,6 +25,7 @@ features = ["rc", "result", "unstable"] targets = ["x86_64-unknown-linux-gnu"] rustdoc-args = [ "--generate-link-to-definition", + "--generate-macro-expansion", "--extern-html-root-url=core=https://doc.rust-lang.org", "--extern-html-root-url=alloc=https://doc.rust-lang.org", "--extern-html-root-url=std=https://doc.rust-lang.org", diff --git a/serde_derive/Cargo.toml b/serde_derive/Cargo.toml index 39c323e2..d4a92a31 100644 --- a/serde_derive/Cargo.toml +++ b/serde_derive/Cargo.toml @@ -34,6 +34,7 @@ serde = { version = "1", path = "../serde" } targets = ["x86_64-unknown-linux-gnu"] rustdoc-args = [ "--generate-link-to-definition", + "--generate-macro-expansion", "--extern-html-root-url=core=https://doc.rust-lang.org", "--extern-html-root-url=alloc=https://doc.rust-lang.org", "--extern-html-root-url=std=https://doc.rust-lang.org", diff --git a/serde_derive_internals/Cargo.toml b/serde_derive_internals/Cargo.toml index 4e494c83..abcc11dd 100644 --- a/serde_derive_internals/Cargo.toml +++ b/serde_derive_internals/Cargo.toml @@ -24,6 +24,7 @@ syn = { workspace = true, features = ["clone-impls", "derive", "parsing", "print targets = ["x86_64-unknown-linux-gnu"] rustdoc-args = [ "--generate-link-to-definition", + "--generate-macro-expansion", "--extern-html-root-url=core=https://doc.rust-lang.org", "--extern-html-root-url=alloc=https://doc.rust-lang.org", "--extern-html-root-url=std=https://doc.rust-lang.org",