Skip to content

Build the docs.rs pages with every feature - #285

Merged
soareschen merged 1 commit into
mainfrom
docs/docs-rs-metadata
Nov 7, 2026
Merged

soareschen merged 1 commit into
mainfrom
docs/docs-rs-metadata

Conversation

@soareschen

Copy link
Copy Markdown
Collaborator

Overview

[deepseek-v4.1-flash] The five crates that declare features now build their docs.rs pages with every feature, so the surface behind a non-default feature is documented. docs.rs previously built each with its default feature only.

Motivation

cgp-extra gates its full feature and cgp-error-extra gates alloc, while cgp-macro, cgp-macro-extra, and cgp-async-macro declare an empty feature table. Without [package.metadata.docs.rs] all-features = true, a reader of those pages could not see the items a feature adds.

Impact

The metadata is inert for the three crates whose feature table is empty, and it keeps their pages correct if a feature is added later. cargo package --no-verify succeeds for cgp-type, which validates the manifests.

Five crates declare features, so docs.rs built each with its default
feature only and left the rest of the surface undocumented. Each now
sets `[package.metadata.docs.rs] all-features = true`.
@soareschen
soareschen marked this pull request as ready for review November 7, 2026 21:10
@soareschen
soareschen merged commit 803bc18 into main Nov 7, 2026
3 checks passed
@soareschen
soareschen deleted the docs/docs-rs-metadata branch November 7, 2026 21:11
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