An open API service indexing awesome lists of open source software.

https://github.com/lukethacoder/next-wasm

🥑 WASM in NextJS?
https://github.com/lukethacoder/next-wasm

nextjs wasm

Last synced: 3 months ago
JSON representation

🥑 WASM in NextJS?

Awesome Lists containing this project

README

        





photograph of and avocado - because why not

next-wasm



WASM in NextJS?


## Installation

Make sure you have [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) 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`