Skip to content

Commit 97dd07a

Browse files
authored
Merge pull request #2647 from dtolnay/doccfg
Render `doc(cfg(...))` on feature gated APIs in docs.rs
2 parents edb1a58 + c8bc97c commit 97dd07a

File tree

6 files changed

+266
-87
lines changed

6 files changed

+266
-87
lines changed

serde/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ doc-scrape-examples = false
2727
features = ["derive", "rc"]
2828

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

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

0 commit comments

Comments
 (0)