js feature of getrandom for wasm build

This commit is contained in:
Sosthene 2025-08-13 22:15:42 +02:00
parent 1e73a9aa1d
commit 73a3d3aebf

View File

@ -22,3 +22,9 @@ tsify = { git = "https://github.com/Sosthene00/tsify", branch = "next" }
wasm-bindgen = "0.2.91"
rs_merkle = "1.4.2"
zstd = "0.13.3"
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
getrandom = { version = "0.2" }