Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 863 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 863 Bytes

miniprogram-rust-wasm

Rust+Webassembly开发微信小程序

在iPhone7 和 小米8 Android 8.1.0成功运行

启动代码在miniprogram/app.js中

hello.js和hello.wasm 是 https://github.com/koute/stdweb/tree/master/examples/minimal编译得到的

demo.js和demo.wasm 是 https://github.com/koute/stdweb/tree/master/examples/hasher编译得到的

编译: cargo web build --target=wasm32-unknown-unknown --release

hello.js和demo.js在代码中经过改动适配微信小程序

stdweb的安装教程在这里https://crates.io/crates/stdweb

运行截图: