From 5abd4b97458be6bb958bfcc513d6c546c4e56057 Mon Sep 17 00:00:00 2001 From: David Tolnay <dtolnay@gmail.com> Date: Thu, 20 Jul 2023 22:07:35 -0700 Subject: [PATCH] Opt in to generate-link-to-definition when building on docs.rs --- Cargo.toml | 1 + derive/Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 91733df..867476a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,7 @@ doc-scrape-examples = false [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] +rustdoc-args = ["--generate-link-to-definition"] [patch.crates-io] ref-cast = { path = "." } diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 95ecfda..6932e42 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -22,3 +22,4 @@ ref-cast = "1" [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] +rustdoc-args = ["--generate-link-to-definition"]