Skip to content

Commit cf6988a

Browse files
authored
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>
1 parent 52c93e9 commit cf6988a

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

crates/rmcp/Cargo.toml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,32 @@ exhaustive_structs = "warn"
1414
exhaustive_enums = "warn"
1515

1616
[package.metadata.docs.rs]
17-
all-features = true
17+
features = [
18+
"auth",
19+
"auth-client-credentials-jwt",
20+
"base64",
21+
"client",
22+
"client-side-sse",
23+
"elicitation",
24+
"macros",
25+
"reqwest",
26+
"reqwest-native-tls",
27+
"reqwest-tls-no-provider",
28+
"schemars",
29+
"server",
30+
"server-side-http",
31+
"tower",
32+
"transport-async-rw",
33+
"transport-child-process",
34+
"transport-io",
35+
"transport-streamable-http-client",
36+
"transport-streamable-http-client-reqwest",
37+
"transport-streamable-http-client-unix-socket",
38+
"transport-streamable-http-server",
39+
"transport-streamable-http-server-session",
40+
"transport-worker",
41+
"uuid",
42+
]
1843
rustdoc-args = ["--cfg", "docsrs"]
1944

2045
[dependencies]

0 commit comments

Comments
 (0)