6c59b77702
Since Rust 1.30 (released Oct 2018), the wasm target is supported on stable. ref: https://rustwasm.github.io/book/game-of-life/setup.html#the-rust-toolchain
15 lines
348 B
JSON
15 lines
348 B
JSON
{
|
|
"name": "with-webassembly",
|
|
"dependencies": {
|
|
"next": "latest",
|
|
"react": "^17.0.0",
|
|
"react-dom": "^17.0.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"build-rust": "rustc --target wasm32-unknown-unknown -O --crate-type=cdylib src/add.rs -o add.wasm",
|
|
"start": "next start"
|
|
},
|
|
"license": "MIT"
|
|
}
|