Skip to content

Commit

Permalink
Cargo: no target_arch = wasm32 for native-certs dep
Browse files Browse the repository at this point in the history
The `rustls-native-certs` crate doesn't support WASM (there's no native
cert bundle or platform verifier). The existing conditional dependency
import in `Cargo.toml` allowed the `unix` platform family that may
include a wasm target arch target. This commit updates it to exclude
these targets.
  • Loading branch information
cpu authored and djc committed Jun 26, 2024
1 parent 2b3bfbe commit 485ac64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustls-platform-verifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ base64 = { version = "0.21", optional = true } # Only used when the `cert-loggin
jni = { version = "0.19", default-features = false, optional = true } # Only used during doc generation
once_cell = "1.9"

[target.'cfg(all(unix, not(target_os = "android"), not(target_os = "macos"), not(target_os = "ios"), not(target_os = "tvos")))'.dependencies]
[target.'cfg(all(unix, not(target_os = "android"), not(target_os = "macos"), not(target_os = "ios"), not(target_os = "tvos"), not(target_arch = "wasm32")))'.dependencies]
rustls-native-certs = "0.7"
webpki = { package = "rustls-webpki", version = "0.102", default-features = false }

Expand Down

0 comments on commit 485ac64

Please sign in to comment.