Skip to content

Commit

Permalink
re-add webpki to native (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx authored Dec 12, 2024
1 parent 4da3f36 commit cf64bae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xmtp_api_grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cf64bae

Please sign in to comment.