wasm: iroh tls-ring feature — resolves presets::N0 (matches n0 browser-chat)

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 <noreply@anthropic.com>
This commit is contained in:
2026-06-23 17:13:49 -05:00
parent 3b1244ad06
commit 7859184a48

View File

@@ -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 }