Skip to content

Commit

Permalink
Merge pull request #2647 from dtolnay/doccfg
Browse files Browse the repository at this point in the history
Render `doc(cfg(...))` on feature gated APIs in docs.rs
  • Loading branch information
dtolnay committed Nov 6, 2023
2 parents edb1a58 + c8bc97c commit 97dd07a
Show file tree
Hide file tree
Showing 6 changed files with 266 additions and 87 deletions.
4 changes: 2 additions & 2 deletions serde/Cargo.toml
Expand Up @@ -27,9 +27,9 @@ doc-scrape-examples = false
features = ["derive", "rc"]

[package.metadata.docs.rs]
features = ["derive"]
features = ["derive", "rc", "unstable"]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--generate-link-to-definition"]
rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"]

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

0 comments on commit 97dd07a

Please sign in to comment.