0.1.0 • Published 3 years ago

@polymathnetwork/mercat-nodejs v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

WASM bindings for MERCAT Library

This library provides WASM binding for MERCAT. The Rust code can be found at polymath mercat library and the source code for the wasm bindings can be found at WASM bindings.

Build Instructions

For comprehensive build instructions, refer to the README.md file in the root of the repository.

If you have all the necessary tools installed, you can build the wasm bindings using the following commands.

# If your active toolchain is stable, then run
rustup run nightly wasm-pack build --release

# If your active toolchain is nightly, then you can use the simpler version and run
wasm-pack build --release

This will create the bindings in ./pkg/ directory. You can import these into any javascript-based project using a wasm-loader.

Publish

Note that the name in the package.json file will be "mercat". But, in order to properly publish the package, the name should be changed to @polymathnetwork/mercat.