wasmex webassenbly elixir 运行时

发布时间 2024-01-02 14:21:19作者: 荣锋亮

wasmex 是基于wasmtime 以及rust nif 开发的方便elixir 运行webassembly 的框架

与rust 的集成

  • 与rust 集成使用的三方包 
    与mjml 工具类似使用了rustler_precompiled 以及rustler
  • rust 使用的三方包 
    前边也说了是基于了wasmtime 包装的,同时使用了wasmtime wasi 一些子模块

说明

rustler_precompiled 与rustler 基本算是一个黄金搭档了,rustler 可以方便与rust 集成,但是对于预编译加速下载以及启动不是很方便
rustler_precompiled 弥补了此缺陷

参考资料

https://github.com/tessi/wasmex
https://github.com/philss/rustler_precompiled
https://github.com/rusterlium/rustler
https://github.com/bytecodealliance/wasmtime
https://github.com/bytecodealliance/wasmtime/tree/main/crates
https://github.com/tessi/wasmex/blob/main/lib/wasmex/native.ex
https://github.com/tessi/wasmex/releases/tag/v0.8.3