Socket
Socket
Sign inDemoInstall

rust-verkle-wasm

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rust-verkle-wasm


Version published
Maintainers
1
Install size
1.16 MB
Created

Readme

Source

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'

FAQs

Last updated on 22 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc