From 7859184a4861feae3fcd2abd4410d0a54f0aa86b Mon Sep 17 00:00:00 2001 From: Patrick Ecord Date: Tue, 23 Jun 2026 17:13:49 -0500 Subject: [PATCH] =?UTF-8?q?wasm:=20iroh=20tls-ring=20feature=20=E2=80=94?= =?UTF-8?q?=20resolves=20presets::N0=20(matches=20n0=20browser-chat)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit default-features=false dropped too much; tls-ring brings back presets::N0 (ring works on wasm). wasm Rust code now compiles except the runtime refactor; the remaining build blocker is ring's build script needing a wasm-capable clang. Co-Authored-By: Claude Opus 4.8 --- core/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index 2821f59..00ce060 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -55,7 +55,10 @@ reqwest = { version = "0.12", default-features = false, features = ["json"] } getrandom = "0.4.3" getrandom_02 = { package = "getrandom", version = "0.2", features = ["js"] } wasm-bindgen-futures = "0.4" -iroh = { version = "1", optional = true, default-features = false } +# Browser iroh: default-features off (drops native portmapper/apple-datapath), +# but keep tls-ring — ring works on wasm and presets::N0 needs it. (Matches n0's +# own browser-chat example.) +iroh = { version = "1", optional = true, default-features = false, features = ["tls-ring"] } iroh-gossip = { version = "0.101", optional = true, default-features = false, features = ["net"] } iroh-blobs = { version = "0.103", optional = true, default-features = false }