Skip to content

Commit 7289e7f

Browse files
committed
update reference
Signed-off-by: Mahfuza <[email protected]>
1 parent 5d5b2c6 commit 7289e7f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

docs/contribute/plugin/develop_plugin_c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 2
44

55
# Develop WasmEdge Plug-in in C API
66

7-
By developing a plug-in, one can extend the functionality of WasmEdge and customize it to suit specific needs. WasmEdge provides a C++ based API for registering extension modules and host functions. While the WasmEdge language SDKs allow registering host functions from a host (wrapping) application, the plug-in API allows such extensions to be incorporated into WasmEdge's building and releasing process. Here is a flowchart showing all the steps needed for developing WasmEdge Plug-in -
7+
By developing a plug-in, one can extend the functionality of WasmEdge and customize it to suit specific needs. WasmEdge provides a C based API for registering extension modules and host functions. While the WasmEdge language SDKs allow registering host functions from a host (wrapping) application, the plug-in API allows such extensions to be incorporated into WasmEdge's building and releasing process. Here is a flowchart showing all the steps needed for developing WasmEdge Plug-in -
88

99
```mermaid
1010
graph LR;

docs/contribute/plugin/develop_plugin_cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 3
44

55
# Develop WasmEdge Plug-in in C++ API
66

7-
By developing a plug-in, one can extend the functionality of WasmEdge and customize it to suit specific needs. WasmEdge provides a C++ based API for registering extension modules and host functions. While the WasmEdge language SDKs allow registering host functions from a host (wrapping) application, the plug-in API allows such extensions to be incorporated into WasmEdge's building and releasing process.
7+
By developing a plug-in, one can extend the functionality of WasmEdge and customize it to suit specific needs. WasmEdge provides a C based API for registering extension modules and host functions. While the WasmEdge language SDKs allow registering host functions from a host (wrapping) application, the plug-in API allows such extensions to be incorporated into WasmEdge's building and releasing process.
88

99
<!-- prettier-ignore -->
1010
:::note

docs/contribute/plugin/develop_plugin_rustsdk.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ sidebar_position: 4
66

77
By developing a plug-in, one can extend the functionality of WasmEdge and customize it to suit specific needs. WasmEdge provides a Rust-based API for registering extension modules and host functions.
88

9+
```mermaid
10+
graph TD
11+
A[Build WasmEdge from source] -- witc --> B[Generate Rust Plugin Code]
12+
B -- SDK Crate --> C[Create SDK Crate]
13+
C -- Module File --> D[Create Module File]
14+
D -- Wrapper Functions --> E[Write Wrapper Functions in src/lib.rs]
15+
```
16+
917
<!-- prettier-ignore -->
1018
:::note
1119
It is recommended that developers choose the WasmEdge [C API](develop_plugin_c.md) for plug-in development because of the support, compatibility, and flexibility the WasmEdge runtime provides.

0 commit comments

Comments
 (0)