From 3b5745dad417bb4b444fb29de3005d701b75d381 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 14 Jul 2023 17:40:24 +0200 Subject: [PATCH] Add `--generate-link-to-definition` option when building on docs.rs --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e6fbfa05974..2ea37ce8c30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ include.workspace = true [package.metadata.docs.rs] features = ["unstable-doc"] -rustdoc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] [package.metadata.playground]