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

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>
This commit is contained in:
lif 2026-04-02 05:40:11 +08:00 • committed by GitHub
commit cf6988ac7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,32 @@ exhaustive_structs = "warn"
exhaustive_enums = "warn"
[package.metadata.docs.rs]
all-features = true
features = [
"auth",
"auth-client-credentials-jwt",
"base64",
"client",
"client-side-sse",
"elicitation",
"macros",
"reqwest",
"reqwest-native-tls",
"reqwest-tls-no-provider",
"schemars",
"server",
"server-side-http",
"tower",
"transport-async-rw",
"transport-child-process",
"transport-io",
"transport-streamable-http-client",
"transport-streamable-http-client-reqwest",
"transport-streamable-http-client-unix-socket",
"transport-streamable-http-server",
"transport-streamable-http-server-session",
"transport-worker",
"uuid",
]
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]