You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/embed/rust/intro.md
+18-19Lines changed: 18 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,7 @@ sidebar_position: 1
6
6
7
7
## Overview
8
8
9
-
WasmEdge Rust SDK consists of four crates. In the diagram below, the blue rectangles represent the crates, and the arrows show the dependency relation.
10
-
11
-
<divalign="center">
12
-
<imgsrc="image/arch-rust-sdk.jpg"width="50%"/>
13
-
</div>
9
+
WasmEdge Rust SDK consists of five crates:
14
10
15
11
-`wasmedge-sdk` crate defines a group of safe, ergonomic high-level APIs, which are used by developers to build up their own business applications.
16
12
@@ -20,23 +16,26 @@ WasmEdge Rust SDK consists of four crates. In the diagram below, the blue rectan
20
16
21
17
-`wasmedge-macro` crate defines the macros that are commonly used in `wasmedge-sdk` and `wasmedge-sys` to declare [host functions](https://webassembly.github.io/spec/core/exec/runtime.html#:~:text=A%20host%20function%20is%20a,a%20module%20as%20an%20import.).
22
18
19
+
-`async-wasi` crate provides the asynchronous WASI APIs.
20
+
23
21
## Usage
24
22
25
23
- Deploy WasmEdge library in your local environment.
26
24
27
25
Since this crate depends on the WasmEdge C API, it needs to be installed in your system first. Please refer to [WasmEdge Installation and Uninstallation](https://wasmedge.org/book/en/quick_start/install.html) to install the WasmEdge library. The versioning table below shows the version of the WasmEdge library required by each version of the `wasmedge-sdk` crate.
WasmEdge Rust SDK can automatically search the following paths for the WasmEdge library:
42
41
@@ -45,13 +44,13 @@ WasmEdge Rust SDK consists of four crates. In the diagram below, the blue rectan
45
44
46
45
Note that if you have installed the WasmEdge library in a different path, you can set the `WASMEDGE_INCLUDE_DIR` and `WASMEDGE_LIB_DIR` environment variables to the path of the WasmEdge library.
47
46
48
-
- Add `wasmedge-sdk` crate to your `Cargo.toml` file. Note that, according to the version table, the version of `wasmedge-sdk` matching `WasmEdge v0.12.0` is `0.8.0`.
47
+
- Add `wasmedge-sdk` crate to your `Cargo.toml` file. Note that, according to the versioning table, the version of `wasmedge-sdk` matching `WasmEdge v0.13.0` is `0.9.0`.
49
48
50
49
```toml
51
-
wasmedge-sdk = "0.8.0"
50
+
wasmedge-sdk = "0.9.0"
52
51
```
53
52
54
-
**Notice:** The minimum supported Rust version is 1.67.
53
+
**Notice:** The minimum supported Rust version is 1.68.
0 commit comments