【文件属性】:
文件名称:game-of-life-rust-webassembly
文件大小:1.22MB
文件格式:ZIP
更新时间:2021-04-10 06:56:40
JavaScript
Conway's Game of Life
细胞自动机的实现。
基于
:speech_balloon: 关于
Conway的“生命游戏”的此使用以下技术:
锈 :crab:
Web组装 :spider_web:
打字稿
JavaScript
萨斯
HTML5
Webpack
:check_box_with_check: 要求
WebAssembly的 :spider_web:
来自Node.JS的
:hammer_and_wrench: 使用wasm-pack和npm构建
wasm-pack build
cd www
npm install
npm run build
:microscope: 使用wasm-pack test在无头浏览器中进行wasm-pack test
wasm-pack test --headless --firefox
:wrapped_gift: 使用wasm-pack publish发布到NPM
wasm-pack publish
:battery: 包含电池
wasm-bindgen用于在WebAssembly
【文件预览】:
game-of-life-rust-webassembly-master
----_config.yml(26B)
----LICENSE_APACHE(9KB)
----.gitignore(79B)
----README.md(2KB)
----Cargo.toml(1KB)
----tests()
--------web.rs(1KB)
----.cargo-ok(0B)
----docs()
--------bundle.js(3KB)
--------2.bundle.js(1.54MB)
--------1.bundle.js(5KB)
--------6be6d35e278970820b72.module.wasm(57KB)
--------index.html(870B)
----src()
--------lib.rs(8KB)
--------utils.rs(1KB)
----benches()
--------bench.rs(314B)
----www()
--------.gitignore(18B)
--------.bin()
--------tsconfig.json(718B)
--------README.md(3KB)
--------package.json(1KB)
--------src()
--------.travis.yml(73B)
--------webpack.config.js(1KB)
--------package-lock.json(318KB)
----.travis.yml(585B)
----LICENSE_MIT(1KB)