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?
- Host: GitHub
- URL: https://github.com/lukethacoder/next-wasm
- Owner: lukethacoder
- License: gpl-3.0
- Created: 2024-01-28T01:33:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-02T22:35:36.000Z (over 1 year ago)
- Last Synced: 2025-02-14T05:26:10.856Z (4 months ago)
- Topics: nextjs, wasm
- Language: TypeScript
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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`