Skip to content

fix: exclude local feature from docs.rs build#782

Open
majiayu000 wants to merge 1 commit intomodelcontextprotocol:mainfrom
majiayu000:fix/issue-781-docs-rs-missing-items
Open

fix: exclude local feature from docs.rs build#782
majiayu000 wants to merge 1 commit intomodelcontextprotocol:mainfrom
majiayu000:fix/issue-781-docs-rs-missing-items

Conversation

@majiayu000
Copy link
Copy Markdown

Fixes #781

all-features = true in [package.metadata.docs.rs] enables the local feature, which relaxes Send+Sync bounds. Items gated behind cfg(not(feature = "local")) then get excluded from the generated docs on docs.rs.

Replaced all-features = true with an explicit feature list that includes everything except local. The list was computed from cargo metadata, filtering out local, default, and internal __-prefixed features (same approach as the test-no-local CI job from #761).

The `local` feature relaxes Send+Sync bounds, which causes items
gated behind `cfg(not(feature = "local"))` to be excluded when
docs.rs builds with all-features. Replace `all-features = true`
with an explicit feature list that omits `local`.

Signed-off-by: majiayu000 <1835304752@qq.com>
@github-actions github-actions bot added T-dependencies Dependencies related changes T-config Configuration file changes labels Mar 28, 2026
@majiayu000 majiayu000 marked this pull request as ready for review March 28, 2026 11:55
@majiayu000 majiayu000 requested a review from a team as a code owner March 28, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-config Configuration file changes T-dependencies Dependencies related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rustdocs missing for some core items

1 participant