diff --git a/docs/start/wasmedge/extensions/plugins.md b/docs/start/wasmedge/extensions/plugins.md index a9c2fff4..6266a146 100644 --- a/docs/start/wasmedge/extensions/plugins.md +++ b/docs/start/wasmedge/extensions/plugins.md @@ -12,19 +12,21 @@ The plug-in mechanism for WasmEdge is an easy way to extend the host modules fro The following lists are the WasmEdge official released plug-ins. Users can install them easily by the installer. -| Plug-in | Description | Platform Support | Language support | -|-----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------| -| WasmEdge-Process | Allows WebAssembly programs to execute native commands in the host operating system. It supports passing arguments, environment variables, `STDIN`/`STDOUT` pipes, and security policies for host access. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, and `ubuntu 20.04 x86_64` (since `0.10.0`) | [Rust](https://crates.io/crates/wasmedge_process_interface) | -| [WASI-Crypto](https://github.com/WebAssembly/wasi-crypto) | APIs that a runtime can expose to WebAssembly modules in order to perform cryptographic operations and key management. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, and `ubuntu 20.04 x86_64` (since `0.10.1`) | [Rust](https://crates.io/crates/wasi-crypto) | -| [WASI-NN](https://github.com/WebAssembly/wasi-nn) (OpenVINO backend) | AI inference using OpenVINO models. | `ubuntu 20.04 x86_64` (since `0.10.1`) | [Rust](https://crates.io/crates/wasi-nn), JavaScript | -| [WASI-NN](https://github.com/WebAssembly/wasi-nn) (Pytorch backend) | AI inference using Pytorch models. | `manylinux2014 x86_64` and `ubuntu 20.04 x86_64` (since `0.11.1`) | [Rust](https://crates.io/crates/wasi-nn), JavaScript | -| [WASI-NN](https://github.com/WebAssembly/wasi-nn) (TensorFlow-Lite backend) | AI inference using TensorFlow-Lite models. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, and `ubuntu 20.04 x86_64` (since `0.11.2`) | [Rust](https://crates.io/crates/wasi-nn), JavaScript | -| WasmEdge-Image | A native library to manipulate images for AI inference tasks. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | [Rust](https://crates.io/crates/wasmedge_tensorflow_interface) (0.3.0) | -| WasmEdge-Tensorflow | A native library for inferring TensorFlow models. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | [Rust](https://crates.io/crates/wasmedge_tensorflow_interface) (0.3.0) | -| WasmEdge-TensorflowLite | A native library for inferring TensorFlow-Lite models. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | [Rust](https://crates.io/crates/wasmedge_tensorflow_interface) | -| WasmEdge-OpenCV | Very popular utility functions to process images and videos for AI input/output. | Unreleased | Rust | -| WasmEdge-eBPF | A native library for inferring eBPF applications | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | Rust | -| WasmEdge-rusttls | A native library for inferring Rust and TLS Library | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | [Rust](https://crates.io/crates/wasmedge_rustls_api) +| Plug-in | Description | Platform Support | Language support | +|----------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------| +| [WasmEdge-Process](../../../contribute/source/plugin/process.md) | Allows WebAssembly programs to execute native commands in the host operating system. It supports passing arguments, environment variables, `STDIN`/`STDOUT` pipes, and security policies for host access. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, and `ubuntu 20.04 x86_64` (since `0.10.0`) | [Rust](https://crates.io/crates/wasmedge_process_interface) | +| [WASI-Crypto](https://github.com/WebAssembly/wasi-crypto) | APIs that a runtime can expose to WebAssembly modules in order to perform cryptographic operations and key management. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, and `ubuntu 20.04 x86_64` (since `0.10.1`) | [Rust](https://crates.io/crates/wasi-crypto) | +| [WASI-NN](https://github.com/WebAssembly/wasi-nn) [(OpenVINO backend)](../../../develop/rust/wasinn/openvino.md) | AI inference using OpenVINO models. | `ubuntu 20.04 x86_64` (since `0.10.1`) | [Rust](https://crates.io/crates/wasi-nn), JavaScript | +| [WASI-NN](https://github.com/WebAssembly/wasi-nn) [(Pytorch backend)](../../../develop/rust/wasinn/pytorch.md) | AI inference using Pytorch models. | `manylinux2014 x86_64` and `ubuntu 20.04 x86_64` (since `0.11.1`) | [Rust](https://crates.io/crates/wasi-nn), JavaScript | +| [WASI-NN](https://github.com/WebAssembly/wasi-nn) [(TensorFlow-Lite backend)](../../../develop/rust/wasinn/tensorflow_lite.md) | AI inference using TensorFlow-Lite models. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, and `ubuntu 20.04 x86_64` (since `0.11.2`) | [Rust](https://crates.io/crates/wasi-nn), JavaScript | +| [WasmEdge-Image](../../../contribute/source/plugin/image.md) | A native library to manipulate images for AI inference tasks. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | [Rust](https://crates.io/crates/wasmedge_tensorflow_interface) (0.3.0) | +| [WasmEdge-Tensorflow](../../../contribute/source/plugin/tensorflow.md) | A native library for inferring TensorFlow models. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | [Rust](https://crates.io/crates/wasmedge_tensorflow_interface) (0.3.0) | +| [WasmEdge-TensorflowLite](../../../contribute/source/plugin/tensorflowlite.md) | A native library for inferring TensorFlow-Lite models. | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | [Rust](https://crates.io/crates/wasmedge_tensorflow_interface) | +| WasmEdge-OpenCV | Very popular utility functions to process images and videos for AI input/output. | Unreleased | Rust | +| WasmEdge-eBPF | A native library for inferring eBPF applications | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | Rust | +| WasmEdge-rusttls | A native library for inferring Rust and TLS Library | `manylinux2014 x86_64`, `manylinux2014 aarch64`, `ubuntu 20.04 x86_64`, `darwin x86_64`, and `darwin arm64` (since `0.13.0`) | [Rust](https://crates.io/crates/wasmedge_rustls_api) + + ## Old WasmEdge Extensions diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/start/build-and-run/cli.md b/i18n/zh/docusaurus-plugin-content-docs/current/start/build-and-run/cli.md index 9b5e8bb3..d0c6def2 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/start/build-and-run/cli.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/start/build-and-run/cli.md @@ -8,7 +8,7 @@ sidebar_position: 1 `wasmedge` 二进制文件是一个命令行界面(CLI)程序,用于运行 WebAssembly 程序。 -- 如果 WebAssembly 程序包含 `main()` 函数,`wasmedge` 将以命令模式执行它作为独立程序。 +- 如果 WebAssembly 程序包含 `main()` 函数,`wasmedge` 将把它作为独立程序以命令模式执行。 - 如果 WebAssembly 程序包含一个或多个导出的公共函数,`wasmedge` 可以在反应器模式中调用单个函数。 默认情况下,`wasmedge` 将以解释器模式执行 WebAssembly 程序,并在 AOT 模式下执行 AOT 编译的 `.so`、`.dylib`、`.dll` 或 `.wasm`(通用输出格式)。如果要加速 WASM 执行,我们建议首先使用 [AOT 编译器对 WebAssembly 进行编译](aot.md)。 @@ -139,8 +139,6 @@ Hello WasmEdge! 命令行支持 `--gas-limit`参数,用于控制执行成本。 -For giving sufficient gas as the example, you can run: - 下面是提供足够的 Gas 的示例: ```bash diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/start/wasmedge/features.md b/i18n/zh/docusaurus-plugin-content-docs/current/start/wasmedge/features.md index 4bd2529e..704c6b82 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/start/wasmedge/features.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/start/wasmedge/features.md @@ -67,7 +67,7 @@ WasmEdge 目前支持: ## 易于扩展 -使用 C、Go 和 Rust 中的本地主机函数很容易构建自定义的 WasmEdge 运行时。 +使用 C、Go 和 Rust 中的原生宿主函数很容易构建自定义的 WasmEdge 运行时。 或者,你可以为 WasmEdge 构建自己的插件, diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/start/wasmedge/integrations.md b/i18n/zh/docusaurus-plugin-content-docs/current/start/wasmedge/integrations.md index 5588450c..3c70a349 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/start/wasmedge/integrations.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/start/wasmedge/integrations.md @@ -24,7 +24,7 @@ WasmEdge 提供符合 OCI 规范的接口。你可以使用诸如 CRI-O、Docker - [使用 CRI-O 和 Docker Hub 管理 WasmEdge](https://www.secondstate.io/articles/manage-webassembly-apps-in-wasmedge-using-docker-tools/)。 -## 从 WasmEdge 调用本机主机函数 +## 从 WasmEdge 调用原生宿主函数 WasmEdge 的一个关键特性是其可扩展性。WasmEdge API 允许开发人员将来自主机编程语言的“主机函数”注册到 WasmEdge 实例中,并从 WebAssembly 程序中调用这些函数。