From 166c89fabfa2c04d39c2abaf8b0a690d431ea94c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 20 Jul 2023 22:19:03 -0700 Subject: [PATCH] Opt in to generate-link-to-definition when building on docs.rs --- precompiled/serde_derive/Cargo.toml | 1 + serde/Cargo.toml | 1 + serde_derive/Cargo.toml | 1 + serde_derive_internals/Cargo.toml | 1 + serde_test/Cargo.toml | 1 + 5 files changed, 5 insertions(+) diff --git a/precompiled/serde_derive/Cargo.toml b/precompiled/serde_derive/Cargo.toml index a5ea0362..7685fcca 100644 --- a/precompiled/serde_derive/Cargo.toml +++ b/precompiled/serde_derive/Cargo.toml @@ -31,5 +31,6 @@ serde = { version = "1", path = "../../serde" } [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] +rustdoc-args = ["--generate-link-to-definition"] [workspace] diff --git a/serde/Cargo.toml b/serde/Cargo.toml index b23a443b..ee5c328b 100644 --- a/serde/Cargo.toml +++ b/serde/Cargo.toml @@ -28,6 +28,7 @@ features = ["derive", "rc"] [package.metadata.docs.rs] features = ["derive"] targets = ["x86_64-unknown-linux-gnu"] +rustdoc-args = ["--generate-link-to-definition"] ### FEATURES ################################################################# diff --git a/serde_derive/Cargo.toml b/serde_derive/Cargo.toml index 7fd5ab92..e375ae9e 100644 --- a/serde_derive/Cargo.toml +++ b/serde_derive/Cargo.toml @@ -30,3 +30,4 @@ serde = { version = "1", path = "../serde" } [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] +rustdoc-args = ["--generate-link-to-definition"] diff --git a/serde_derive_internals/Cargo.toml b/serde_derive_internals/Cargo.toml index a019a516..7e5ec1f3 100644 --- a/serde_derive_internals/Cargo.toml +++ b/serde_derive_internals/Cargo.toml @@ -21,3 +21,4 @@ syn = { version = "2.0.25", default-features = false, features = ["clone-impls", [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] +rustdoc-args = ["--generate-link-to-definition"] diff --git a/serde_test/Cargo.toml b/serde_test/Cargo.toml index 994d8e79..9fa0011f 100644 --- a/serde_test/Cargo.toml +++ b/serde_test/Cargo.toml @@ -25,3 +25,4 @@ doc-scrape-examples = false [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] +rustdoc-args = ["--generate-link-to-definition"]