The WASM JavaScript binding of the Rust implementation of the Dash Platform Protocol
In order for this binding to work, you have to have a rs-platform cloned alongside platform repo, so you can have access to the rust dpp.
Built-in llvm
on OSX does not work, it needs to be installed from brew:
brew install llvm
- LLVM installed from brew is keg only, and path to it must be provided in the profile file, e.g.
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
Library consumers must ignore class names minification for @dashevo/wasm-dpp
library in their bundlers.
- Install Rust v1.73+
- Add wasm32 target:
$ rustup target add wasm32-unknown-unknown
- Install wasm-bingen-cli:
cargo install [email protected]
- double-check that wasm-bindgen-cli version above matches wasm-bindgen version in Cargo.lock file
- Depending on system, additional packages may need to be installed as a prerequisite for wasm-bindgen-cli. If anything is missing, installation will error and prompt what packages are missing (i.e. clang, llvm, libssl-dev)
$ yarn build
Feel free to dive in! Open an issue or submit PRs.
MIT © Dash Core Group, Inc.