From 17bbf7495c1e3191bbdc19ae0ec94b412843f15a Mon Sep 17 00:00:00 2001 From: majiayu000 <1835304752@qq.com> Date: Sat, 28 Mar 2026 18:49:07 +0800 Subject: [PATCH] fix: exclude local feature from docs.rs build 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> --- crates/rmcp/Cargo.toml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/crates/rmcp/Cargo.toml b/crates/rmcp/Cargo.toml index bc59c593..57ce5651 100644 --- a/crates/rmcp/Cargo.toml +++ b/crates/rmcp/Cargo.toml @@ -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]