Skip to content
This repository was archived by the owner on Apr 16, 2023. It is now read-only.
piotr-roslaniecPublic archive

About

Use wasm-pack in MetaMask Snaps

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaMask Snaps WASM example

This repository shows how to use wasm-pack WASM modules in MetaMask Snaps.

Usage

First, build your Rust project used as a ./snap dependency:

cd rust-lib
wasm-pack build --target no-modules

Then, you can build and run your snap:

cd snap
yarn install
yarn build
yarn serve

Demo

Snap demo

Demo Instructions

In order to run this demo, we need to install a specific MetaMask Flask version:

  • Pull down this branch
  • Build the extension locally: yarn setup && yarn dist --build-type flask
  • Load the unpacked extension (see "custom build" instructions) from here

About

Use wasm-pack in MetaMask Snaps

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages