File: 2002_no_wasm.patch

package info (click to toggle)
rust-rustls-platform-verifier 0.5.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 596 kB
  • sloc: makefile: 4; sh: 1
file content (24 lines) | stat: -rw-r--r-- 987 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: avoid WASM-only crates
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2025-01-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/rustls-platform-verifier/Cargo.toml
+++ b/rustls-platform-verifier/Cargo.toml
@@ -26,14 +26,10 @@
 base64 = { version = "0.22", optional = true } # Only used when the `cert-logging` feature is enabled.
 once_cell = "1.9"
 
-[target.'cfg(all(unix, not(target_arch = "wasm32")))'.dependencies]
+[target.'cfg(unix)'.dependencies]
 rustls-native-certs = "0.8"
 webpki = { package = "rustls-webpki", version = "0.103", default-features = false }
 
-[target.'cfg(target_arch = "wasm32")'.dependencies]
-webpki = { package = "rustls-webpki", version = "0.103", default-features = false }
-webpki-root-certs = "0.26"
-
 [target.'cfg(windows)'.dependencies]
 windows-sys = { version = ">=0.52.0, <0.60.0", default-features = false, features = ["Win32_Foundation", "Win32_Security_Cryptography"] }