WasmEdge 0.10.1 发布,支持 wasi-nn 与 wasi-crypto 等提案

WasmEdge 0.10.1 发布,本版本增加了 wasi-nn 与 wasi-crypto 等 WebAssembly 提案,优化了 C API 与 macOS 开发者的开发体验。

新增 feature:

  • 以 plugin 的方式在 Ubuntu 20.04 x86_64 上支持带有 OpenVINO 后端的 WASI-NN 提案。
    • 用户可以参考标准扩展状态获取信息。
    • 对于使用 OpenVINO 后端启用 WASI-NN 的构建,请在 cmake 中添加 -DWASMEDGE_PLUGIN_WASI_NN_BACKEND="OpenVINO"
  • 以 plugin 的方式在 Ubuntu 20.04 x86_64、manylinux2014 x86_64 和 manylinux2014 aarch64 上支持 WASI-crypto 提案。
    • 用户可以参考标准扩展状态获取信息。
    • 对于使用 OpenSSL 1.1 启用 WASI-crypto 的构建,请在 cmake 中添加-DWASMEDGE_PLUGIN_WASI_CRYPTO=ON
  • 添加了静态工具构建选项。
    • 默认情况下,WasmEdge 工具将依赖于 WasmEdge 共享库。
    • 开发者可以添加 -DWASMEDGE_BUILD_STATIC_LIB=On-DWASMEDGE_BUILD_STATIC_TOOLS=On 来构建独立的 WasmEdge CLI 工具。
  • 在 WasmEdge C API 中导出了 WasmEdge_VMContext 的组件。
    • 添加了 WasmEdge_VMGetLoaderContext API,用于在 VM 中检索 WasmEdge_LoaderContext
    • 添加了 WasmEdge_VMGetValidatorContext API,用于在 VM 中检索 WasmEdge_ValidatorContext
    • 添加了 WasmEdge_VMGetExecutorContext API,用于在 VM 中检索 WasmEdge_ExecutorContext
  • 添加了 CLI 工具的 API。
    • 开发者可以使用 WasmEdge_Driver_Compiler API 来触发 WasmEdge AOT 编译工具。
    • 开发者可以使用 WasmEdge_Driver_Tool API 来触发 WasmEdge runtime 工具。
  • 支持 WASM threads 提案。
    • 为 WasmEdge C API 中的配置添加了 WasmEdge_Proposal_Threads
    • 用户可以使用 --enable-threadswasmedgewasmedgec 工具中启用提案。
  • 在 MacOS 上支持 LLVM 14。
    • 在 LLVM-14 环境中的 lld 中使用了新的 macho
    • 将 IWYU 提升到 0.18 以与 MacOS 上的 LLVM 14 兼容。
  • 提升 MacOS x86_64 build到 MacOS 11。

已修复的问题

  • 修复了通用 WASM 格式在 MacOS 平台上失败的问题。
    • 开发者可以在MacOS上指定扩展名.wasm作为AOT编译器的通用 WASM 格式输出来开启AOT模式。
  • 修复了带有 LLVM 14 的 MacOS 上的 WasmEdge C API 静态库。
    • WasmEdge C API 静态库处于实验阶段,不能确保可用。推荐使用共享库。
  • 减少实例化 AOT 编译的 WASM 时的分支缺失。

更多详情请点击 WasmEdge 0.10.1 changelog

猜你喜欢

转载自www.oschina.net/news/204612/wasmedge-0-10-1-released