Skip to content

Commit

Permalink
fix(pkarr): add rand in wasm target
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Sep 22, 2024
1 parent 60fb3a1 commit 497b6fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkarr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ reqwest = { version = "0.12.7", features = ["rustls-tls"], optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3.69"
futures = "0.3.30"
rand = "0.8.5"
getrandom = { version = "0.2", features = ["js"] }
reqwest = "0.12.7"

Expand Down
7 changes: 7 additions & 0 deletions pkarr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ Publish and resolve DNS packets over Mainline DHT.
## Get started

Check the [Examples](https://github.com/Nuhvi/pkarr/tree/main/pkarr/examples).

## WebAssembly support

This version of Pkarr assumes that you are running Wasm in a JavaScript environment,
and using the Relays clients, so you can't use it in Wasi for example, nor can you
use some Wasi bindings to use the DHT directly. If you really need Wasi support, please
open an issue on `https://git.pkarr.org`.

0 comments on commit 497b6fa

Please sign in to comment.