From cf64bae0f68d80024c3f6564a03f474fc22c70a6 Mon Sep 17 00:00:00 2001 From: Andrew Plaza Date: Thu, 12 Dec 2024 10:04:17 -0500 Subject: [PATCH] re-add webpki to native (#1407) --- xmtp_api_grpc/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmtp_api_grpc/Cargo.toml b/xmtp_api_grpc/Cargo.toml index 7c4ebee2c..b69a0d0c4 100644 --- a/xmtp_api_grpc/Cargo.toml +++ b/xmtp_api_grpc/Cargo.toml @@ -17,13 +17,17 @@ xmtp_proto = { path = "../xmtp_proto", features = ["proto_full"] } xmtp_v2 = { path = "../xmtp_v2" } zeroize.workspace = true +# Anything but iOS and Android will use either webpki or native. +# If native certs are not found, it will fallback to webpki [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies] tonic = { workspace = true, features = [ "default", "tls", "tls-native-roots", + "tls-webpki-roots" ] } +# Force Android + iOS to use webki [target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies] tonic = { workspace = true, features = [ "default",