2个版本
| 0.18.1 | 2024年4月27日 | 
|---|---|
| 0.18.0 | 2024年4月27日 | 
#781 在 WebAssembly
176 每月下载量
在 wasmer-runtime-x 中使用
1MB
 25K  SLoC
Wasmer单遍后端
Wasmer是一个独立的JIT WebAssembly运行时,旨在与Emscripten、Rust和Go完全兼容。[了解更多](https://github.com/wasmerio/wasmer)
此crate代表Wasmer的单遍后端集成。
用法
在Wasmer Standalone中的用法
如果您使用的是 wasmer 命令行界面,您可以指定后端
wasmer run program.wasm --backend=singlepass
在Wasmer嵌入式中的用法
如果您使用Wasmer嵌入式,您可以将单遍后端指定给compile_with 函数
use wasmer_singlepass_backend::SinglepassCompiler;
// ...
let module = wasmer_runtime_core::compile_with(&wasm_binary[..], &SinglepassCompiler::new());
依赖关系
~10MB
~210K SLoC
