rsnext/examples/with-webassembly/package.json
Nick Babcock 6c59b77702
Switch to stable rust for with-webassembly example (#22582)
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
2021-02-27 21:48:49 +00:00

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"
}