change mcp server collection to use webpki roots instead of native, since the native roots do not work on android

This commit is contained in:
2026-05-25 18:02:51 +02:00
parent 0fa4bda949
commit 5100a0ccdb
4 changed files with 22 additions and 3 deletions
+10
View File
@@ -1033,6 +1033,7 @@ dependencies = [
"tokio", "tokio",
"tokio-rustls", "tokio-rustls",
"tower-service", "tower-service",
"webpki-roots",
] ]
[[package]] [[package]]
@@ -3722,6 +3723,15 @@ dependencies = [
"rustls-pki-types", "rustls-pki-types",
] ]
[[package]]
name = "webpki-roots"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52f5ee44c96cf55f1b349600768e3ece3a8f26010c05265ab73f945bb1a2eb9d"
dependencies = [
"rustls-pki-types",
]
[[package]] [[package]]
name = "winapi-util" name = "winapi-util"
version = "0.1.11" version = "0.1.11"
+10
View File
@@ -601,6 +601,7 @@ dependencies = [
"tokio", "tokio",
"tokio-rustls", "tokio-rustls",
"tower-service", "tower-service",
"webpki-roots",
] ]
[[package]] [[package]]
@@ -2063,6 +2064,15 @@ dependencies = [
"semver", "semver",
] ]
[[package]]
name = "webpki-roots"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52f5ee44c96cf55f1b349600768e3ece3a8f26010c05265ab73f945bb1a2eb9d"
dependencies = [
"rustls-pki-types",
]
[[package]] [[package]]
name = "windows-core" name = "windows-core"
version = "0.62.2" version = "0.62.2"
+1 -1
View File
@@ -21,7 +21,7 @@ libdav = { version = "0.10.5", optional = true }
icalendar = { version = "0.17.10", optional = true, features = ["chrono-tz", "recurrence"] } icalendar = { version = "0.17.10", optional = true, features = ["chrono-tz", "recurrence"] }
hyper-util = { version = "0.1.20", optional = true } hyper-util = { version = "0.1.20", optional = true }
http = { version = "1.4.0", optional = true } http = { version = "1.4.0", optional = true }
hyper-rustls = { version = "0.27.7", optional = true } hyper-rustls = { version = "0.27.7", optional = true, features = ["webpki-roots"]}
toml = "1.1.2" toml = "1.1.2"
[features] [features]
+1 -2
View File
@@ -24,8 +24,7 @@ pub(crate) fn get_caldav_client(
password: &str, password: &str,
) -> AuthorizedCaldavClient { ) -> AuthorizedCaldavClient {
let https_connector: HttpsConnector<HttpConnector> = HttpsConnectorBuilder::new() let https_connector: HttpsConnector<HttpConnector> = HttpsConnectorBuilder::new()
.with_native_roots() .with_webpki_roots()
.unwrap()
.https_only() .https_only()
.enable_http1() .enable_http1()
.build(); .build();