Skip to content

Commit 497b6fa

Browse files
committed
fix(pkarr): add rand in wasm target
1 parent 60fb3a1 commit 497b6fa

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkarr/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ reqwest = { version = "0.12.7", features = ["rustls-tls"], optional = true }
3333
[target.'cfg(target_arch = "wasm32")'.dependencies]
3434
js-sys = "0.3.69"
3535
futures = "0.3.30"
36+
rand = "0.8.5"
3637
getrandom = { version = "0.2", features = ["js"] }
3738
reqwest = "0.12.7"
3839

pkarr/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ Publish and resolve DNS packets over Mainline DHT.
99
## Get started
1010

1111
Check the [Examples](https://github.com/Nuhvi/pkarr/tree/main/pkarr/examples).
12+
13+
## WebAssembly support
14+
15+
This version of Pkarr assumes that you are running Wasm in a JavaScript environment,
16+
and using the Relays clients, so you can't use it in Wasi for example, nor can you
17+
use some Wasi bindings to use the DHT directly. If you really need Wasi support, please
18+
open an issue on `https://git.pkarr.org`.

0 commit comments

Comments
 (0)