lukethacoder / next-wasm

🥑 WASM in NextJS?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


photograph of and avocado - because why not

next-wasm

WASM in NextJS?

Installation

Make sure you have wasm-pack installed.

Install Dependencies

cargo build

Compile WASM

Rust components can be compiled to WASM using the scripts in package.json:

  • pn rust:add || wasm-pack build --out-dir ../../../wasm/components/add rust/components/add
  • pn rust:uuid || wasm-pack build --out-dir ../../../wasm/components/uuid rust/components/uuid

About

🥑 WASM in NextJS?

License:GNU General Public License v3.0


Languages

Language:TypeScript 85.6%Language:JavaScript 6.1%Language:CSS 5.6%Language:Rust 2.7%