Skip to content

Commit ec1301d

Browse files
authored
Update intro.md (#122)
* chore: update `intro.md` Signed-off-by: Xin Liu <[email protected]> * chore: run `prettier` on `intro.md` Signed-off-by: Xin Liu <[email protected]> --------- Signed-off-by: Xin Liu <[email protected]>
1 parent a1e442d commit ec1301d

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed
-125 KB
Binary file not shown.

docs/embed/rust/intro.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ sidebar_position: 1
66

77
## Overview
88

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-
<div align="center">
12-
<img src="image/arch-rust-sdk.jpg" width="50%"/>
13-
</div>
9+
WasmEdge Rust SDK consists of five crates:
1410

1511
- `wasmedge-sdk` crate defines a group of safe, ergonomic high-level APIs, which are used by developers to build up their own business applications.
1612

@@ -20,23 +16,26 @@ WasmEdge Rust SDK consists of four crates. In the diagram below, the blue rectan
2016

2117
- `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.).
2218

19+
- `async-wasi` crate provides the asynchronous WASI APIs.
20+
2321
## Usage
2422

2523
- Deploy WasmEdge library in your local environment.
2624

2725
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.
2826

29-
| wasmedge-sdk | WasmEdge lib | wasmedge-sys | wasmedge-types | wasmedge-macro |
30-
| :-: | :-: | :-: | :-: | :-: |
31-
| 0.8.1 | 0.12.1 | 0.13.1 | 0.4.1 | 0.3.0 |
32-
| 0.8.0 | 0.12.0 | 0.13.0 | 0.4.1 | 0.3.0 |
33-
| 0.7.1 | 0.11.2 | 0.12.2 | 0.3.1 | 0.3.0 |
34-
| 0.7.0 | 0.11.2 | 0.12 | 0.3.1 | 0.3.0 |
35-
| 0.6.0 | 0.11.2 | 0.11 | 0.3.0 | 0.2.0 |
36-
| 0.5.0 | 0.11.1 | 0.10 | 0.3.0 | 0.1.0 |
37-
| 0.4.0 | 0.11.0 | 0.9 | 0.2.1 | - |
38-
| 0.3.0 | 0.10.1 | 0.8 | 0.2 | - |
39-
| 0.1.0 | 0.10.0 | 0.7 | 0.1 | - |
27+
| wasmedge-sdk | WasmEdge lib | wasmedge-sys | wasmedge-types | wasmedge-macro | async-wasi |
28+
| :-: | :-: | :-: | :-: | :-: | :-: |
29+
| 0.9.0 | 0.13.0 | 0.14.0 | 0.4.2 | 0.4.0 | 0.0.1 |
30+
| 0.8.1 | 0.12.1 | 0.13.1 | 0.4.1 | 0.3.0 | - |
31+
| 0.8.0 | 0.12.0 | 0.13.0 | 0.4.1 | 0.3.0 | - |
32+
| 0.7.1 | 0.11.2 | 0.12.2 | 0.3.1 | 0.3.0 | - |
33+
| 0.7.0 | 0.11.2 | 0.12 | 0.3.1 | 0.3.0 | - |
34+
| 0.6.0 | 0.11.2 | 0.11 | 0.3.0 | 0.2.0 | - |
35+
| 0.5.0 | 0.11.1 | 0.10 | 0.3.0 | 0.1.0 | - |
36+
| 0.4.0 | 0.11.0 | 0.9 | 0.2.1 | - | - |
37+
| 0.3.0 | 0.10.1 | 0.8 | 0.2 | - | - |
38+
| 0.1.0 | 0.10.0 | 0.7 | 0.1 | - | - |
4039

4140
WasmEdge Rust SDK can automatically search the following paths for the WasmEdge library:
4241

@@ -45,13 +44,13 @@ WasmEdge Rust SDK consists of four crates. In the diagram below, the blue rectan
4544

4645
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.
4746

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`.
4948

5049
```toml
51-
wasmedge-sdk = "0.8.0"
50+
wasmedge-sdk = "0.9.0"
5251
```
5352

54-
**Notice:** The minimum supported Rust version is 1.67.
53+
**Notice:** The minimum supported Rust version is 1.68.
5554

5655
## Examples
5756

0 commit comments

Comments
 (0)