fix web build

This commit is contained in:
2026-07-27 08:09:55 +07:00
parent b518c729f6
commit 9addbd49f4
5 changed files with 95 additions and 52 deletions

View File

@@ -44,11 +44,21 @@ smallvec = "1.14.0"
smol = "2"
webbrowser = "1.0.4"
tracing-subscriber = { version = "0.3.18", features = ["fmt", "env-filter"] }
errno = { version = "0.3.14", default-features = false }
[patch.crates-io]
# Use stacker's psm version which may have better WASM support
psm = { git = "https://github.com/rust-lang/stacker", branch = "master" }
# Use send-bound branch for all nostr crates
nostr = { git = "https://github.com/rust-nostr/nostr", branch = "send-bound" }
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", branch = "send-bound" }
nostr-lmdb = { git = "https://github.com/rust-nostr/nostr", branch = "send-bound" }
nostr-memory = { git = "https://github.com/rust-nostr/nostr", branch = "send-bound" }
nostr-blossom = { git = "https://github.com/rust-nostr/nostr", branch = "send-bound" }
nostr-gossip-memory = { git = "https://github.com/rust-nostr/nostr", branch = "send-bound" }
nostr-connect = { git = "https://github.com/rust-nostr/nostr", branch = "send-bound" }
[profile.release]
strip = true
opt-level = "z"