Aer*_*ang 1 wasm-bindgen wasm-pack
从这篇文章https://asquera.de/blog/2018-10-01/web assembly- and-wasm-bindgen/ 我发现我们可以运行wasm-bindgen target/wasm32-unknown-unknown/release/qr_wasm.wasm --out-dir ./dist --no-modules --no-typescript来创建 wasm 和 js 文件而不运行wasm-pack build(它会安装 wasm-bindgen 无论我是否以前安装过一个,使它有点慢)这对我来说似乎更灵活,但当我运行时wasm-bindgen xxx它说:zsh: command not found: wasm-bindgen
我用谷歌搜索了一下,但似乎没有人遇到过这个问题。我的项目中还有cargo installwasm-bindgen 和 wasm-bindgen-cli 。
小智 5
确保$HOME/.cargo/bin在您的PATH.
如果不:
export PATH="$PATH:$HOME/.cargo/bin"
Run Code Online (Sandbox Code Playgroud)
或编辑你的.bashrc或其他方式
| 归档时间: |
|
| 查看次数: |
4582 次 |
| 最近记录: |