Skip to content

Commit

Permalink
Make docs.rs link to the stable documentation of the std crates (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb authored Feb 20, 2025
2 parents 4e208ac + 2841224 commit 78658f6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion serde_with/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,14 @@ rustdoc-args = [
"--cfg=docsrs",
# Generate links to definition in rustdoc source code pages
# https://github.com/rust-lang/rust/pull/84176
"-Zunstable-options", "--generate-link-to-definition"
"-Zunstable-options",
"--generate-link-to-definition",
# Link to the stable documentation for core/alloc/std/proc_macro even though docs.rs uses nightly.
# https://github.com/rust-lang/docs.rs/issues/506#issuecomment-2670501688
"--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",
"--extern-html-root-url=proc_macro=https://doc.rust-lang.org",
]

[package.metadata.release]
Expand Down

0 comments on commit 78658f6

Please # to comment.