From b7aa5deeac3044ff12cfd73f0667ea17e3cc3927 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Sat, 7 Dec 2024 18:18:20 +0100 Subject: [PATCH] try wasm target --- Cargo.toml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b2504de..0ee5c99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,5 @@ pcap-parser = "0.16.0" hex = "0.4" ureq = { version = "2.12.1", default-features = false, features = ["tls","native-certs"] } -[target.wasm32-unknown-unknown.dependencies] -rustls = { version = "0.23.18", optional = true, default-features = false, features = ["ring", "std", "tls12"] } -ring = { version = "0.17.7", features = ["wasm32_unknown_unknown_js"] } - +[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] +ring = { version = "0.17.8", features = ["wasm32_unknown_unknown_js"] }