Skip to content

Make feature-gated items visible in docs.rs documentation - #160

Open
mikwielgus wants to merge 1 commit into
orlp:masterfrom
mikwielgus:master
Open

Make feature-gated items visible in docs.rs documentation#160
mikwielgus wants to merge 1 commit into
orlp:masterfrom
mikwielgus:master

Conversation

@mikwielgus

@mikwielgus mikwielgus commented Aug 12, 2026

Copy link
Copy Markdown

Currently, the implementations of Serialize and Deserialize are invisible on Docs.rs, because they are gated by serde feature, and Docs.rs needs a given feature to be enabled to display items behind it in documentation.

So, let's enable all features for Docs.rs.

To enable feature(doc_cfg), which is required for docs to display behind which features each item is, let's also pass --cfg doc.

Currently, the implementations of `Serialize` and `Deserialize` are
invisible on Docs.rs, because they are gated by `serde` feature, Docs.rs
needs a feature to be enabled to display documentation of items gated
by it.

So, let's enable all features for Docs.rs.

To enable `feature(doc_cfg)`, which is required for docs to display
behind which features each item is, let's also pass `--cfg doc`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant