fix(mcp): pin a second reqwest (0.13) for rmcp's client-http impl (T10.4)

rmcp's transport-streamable-http-client-reqwest is written against
reqwest 0.13.2+, a semver-incompatible major vs. the reqwest 0.12 the
rest of WA (llm/sync) depends on -- Cargo can't unify those, so
`reqwest::Client` from our own dependency isn't the same type rmcp's
`impl StreamableHttpClient for reqwest::Client` is written for. Adds
`reqwest013` (a Cargo package-rename of reqwest 0.13) purely so
tests/mcp_server_test.rs can construct the exact client type rmcp
expects, without touching reqwest 0.12 anywhere else in the crate.
This commit is contained in:
iamdoubz committed 2026-07-07 00:50:16 -05:00
1 parent 0839d9c0b8
commit f5651c1133
1 file changed
+10 -1
+10 -1
View File
@@ -67,6 +67,15 @@ http = { version = "1", optional = true }
bytes = { version = "1", optional = true }
tower-service = { version = "0.3", optional = true }
tokio-util = { version = "0.7", optional = true }
# rmcp's own client-http feature (used only by our in-process MCP-client test,
# see tests/mcp_server_test.rs) is pinned to reqwest 0.13, a different major
# version than the reqwest 0.12 the rest of WA uses -- Cargo can't unify
# semver-incompatible majors, so `reqwest::Client` from our own dependency is
# a distinct type from the one rmcp's `impl StreamableHttpClient for
# reqwest::Client` is written against. This aliased second dependency lets
# the test construct the exact type rmcp expects without touching the
# reqwest 0.12 used everywhere else (llm/sync).
reqwest013 = { package = "reqwest", version = "0.13", optional = true, default-features = false, features = ["json", "stream", "rustls-tls"] }
# audio / transcription / diarization / calendar are integrated per-phase and are
# feature-gated so the CPU-only build always compiles (NFR-MNT-4).
@@ -128,7 +137,7 @@ sync = ["dep:keyring"] # remote upload (WebDAV + OAuth providers)
mcp = [
"dep:rmcp", "dep:keyring", "dep:hyper", "dep:hyper-util",
"dep:http-body-util", "dep:http", "dep:bytes", "dep:tower-service",
"dep:tokio-util",
"dep:tokio-util", "dep:reqwest013",
] # WhispAssist as an MCP server + hosted-AI creds
[profile.release]