wasm-rust:使用WebAssembly + Rust进行试验

时间:2021-02-15 10:26:45
【文件属性】:
文件名称:wasm-rust:使用WebAssembly + Rust进行试验
文件大小:110KB
文件格式:ZIP
更新时间:2021-02-15 10:26:45
Rust :hammer_and_wrench: 建造 # Create the `pkg` directory # It will contain the `.wasm` compiled from the Rust code (in `src`) and the JS glue to make it work wasm-pack build # In `site` directory # Install JS dependencies npm install :rocket: 跑 # in `site` directory npm run serve
【文件预览】:
wasm-rust-main
----Cargo.toml(311B)
----src()
--------prime.rs(2KB)
--------lib.rs(264B)
----site()
--------index.html(497B)
--------index.ts(857B)
--------webpack.config.js(387B)
--------lib()
--------bootstrap.ts(276B)
--------tsconfig.json(184B)
--------package-lock.json(433KB)
--------package.json(288B)
----README.md(292B)
----LICENSE_MIT(1KB)
----.gitignore(72B)

网友评论