rust-verkle-wasm
Last updated 2 years ago by kevaundray .
(MIT OR Apache-2.0) · Repository · Original npm · Tarball · package.json
$ cnpm install rust-verkle-wasm 
SYNC missed versions from official npm registry.

Quick Start

To compile Rust to Wasm

For ESM

  • run wasm-pack build. You should see a pkg folder appear.

For a NodeJS module

  • run wasm-pack build --target nodejs.

To call Rust from Javascript as WASM

For an ESM example, use below

  • cd into js_code
  • run npm install. You should see a node_modules folder appear.
  • run node -r esm stateless_update.js you should see a Uint8Array in the console.

For NodeJS + Typescript, import in any .ts file as below: import wasm from 'path/to/rust-verkle-wasm/pkg/rust_verkle_wasm'

Current Tags

  • 0.0.1                                ...           latest (2 years ago)

1 Versions

  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |