/react-rust-chrome-extension

Extension made with React and TypeScript, Rust and WebAssembly

Primary LanguageRustMIT LicenseMIT

react-rust-chrome-extension

Sample project which runs wasm-game-of-life in Chrome extension.

How to build

  1. yarn install
  2. Build wasm and link it
$ wasm-pack build wasm-game-of-life
$ cd wasm-game-of-life/pkg
$ yarn link
$ cd ../..
$ yarn link wasm-game-of-life
  1. yarn build

Then, the dist/ directory is generated. It can be loaded as a unpacked extension.

Next time, the step 1 and the step 2 can be omitted.