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",