Skip to content

Commit 2b44efb

Browse files
committed
Point standard library links to stable
1 parent 03dc0fc commit 2b44efb

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

serde/Cargo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ features = ["derive", "rc"]
2626
[package.metadata.docs.rs]
2727
features = ["derive", "rc", "unstable"]
2828
targets = ["x86_64-unknown-linux-gnu"]
29-
rustdoc-args = ["--generate-link-to-definition"]
29+
rustdoc-args = [
30+
"--generate-link-to-definition",
31+
"--extern-html-root-url=core=https://doc.rust-lang.org",
32+
"--extern-html-root-url=alloc=https://doc.rust-lang.org",
33+
"--extern-html-root-url=std=https://doc.rust-lang.org",
34+
]
3035

3136
# This cfg cannot be enabled, but it still forces Cargo to keep serde_derive's
3237
# version in lockstep with serde's, even if someone depends on the two crates

serde_derive/Cargo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ serde = { version = "1", path = "../serde" }
3232

3333
[package.metadata.docs.rs]
3434
targets = ["x86_64-unknown-linux-gnu"]
35-
rustdoc-args = ["--generate-link-to-definition"]
35+
rustdoc-args = [
36+
"--generate-link-to-definition",
37+
"--extern-html-root-url=core=https://doc.rust-lang.org",
38+
"--extern-html-root-url=alloc=https://doc.rust-lang.org",
39+
"--extern-html-root-url=std=https://doc.rust-lang.org",
40+
]

serde_derive_internals/Cargo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@ syn = { workspace = true, features = ["clone-impls", "derive", "parsing", "print
2222

2323
[package.metadata.docs.rs]
2424
targets = ["x86_64-unknown-linux-gnu"]
25-
rustdoc-args = ["--generate-link-to-definition"]
25+
rustdoc-args = [
26+
"--generate-link-to-definition",
27+
"--extern-html-root-url=core=https://doc.rust-lang.org",
28+
"--extern-html-root-url=alloc=https://doc.rust-lang.org",
29+
"--extern-html-root-url=std=https://doc.rust-lang.org",
30+
]

0 commit comments

Comments
 (0)