-
Install Rust's WASM target
rustup target add wasm32-unknown-unknown
-
Install wasm-pack
-
Install Clang
- On Ubuntu:
apt install clang
- On MacOS:
- Xcode 12.2+ (macOS Big Sur and later)
- Make sure Xcode command line tools are installed.
- Xcode 12.2+ (macOS Big Sur and later)
- On Ubuntu:
-
Install Node & Yarn
- Install Node
- Install yarn:
npm install -g yarn
- Build:
./tools/build.sh
- See Web example
- Connection can only be via localhost or https since WebCrypto used in libp2p's secio implementation only works over secure code.