Rust+Webassembly开发微信小程序
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cloudfunctions/login
miniprogram
.gitattributes
.gitignore
README.md
demo.jpg
project.config.json

README.md

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

运行截图: