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/develop/rust/database/my_sql_driver.md
+181-13
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ The database connection is necessary for today's enterprise development. WasmEdg
8
8
9
9
<!-- prettier-ignore -->
10
10
:::note
11
-
Before we start, ensure [you have Rust and WasmEdge installed](../setup.md). If you are connecting to a remote MySQL database using TLS, you will need to [install the TLS plugin](../../../start/install.md#tls-plug-in) for WasmEdge as well.
11
+
Before we start, ensure [you have Rust and WasmEdge installed](../setup.md).
Copy file name to clipboardexpand all lines: docs/develop/rust/setup.md
+37-1
Original file line number
Diff line number
Diff line change
@@ -32,4 +32,40 @@ To build a WASM file running in server-side WebAssembly like WasmEdge, we need t
32
32
rustup target add wasm32-wasi
33
33
```
34
34
35
-
That's it. Go to the following chapters to build and compile Rust programs in action.
35
+
## Special notes
36
+
37
+
### Async networking with tokio
38
+
39
+
WasmEdge supports async networking APIs provided by [Tokio](https://tokio.rs/) and related crates. If you have tokio in your `Cargo.toml`, you
40
+
need to add a few config flags to help the Rust compiler choose the correct feature branches in the library source code. Here is an example of `cargo build` command for
The standard `cargo` toolchain can support the [Rust TLS](https://github.com/rustls/rustls) library on Linux. However,
58
+
on MacOS, you need a special version of the Clang tool, released from the official [wasi-sdk](https://github.com/WebAssembly/wasi-sdk), in order to support TLS libraries.
59
+
60
+
> When you compile Rust TLS source code to Wasm on Linux, the result Wasm file is cross-platform and can run correctly on any platform with WasmEdge installed. This section is only applicable when you need to **compile** Rust TLS source code on MacOS.
61
+
62
+
[Download the latest wasi-sdk release](https://github.com/WebAssembly/wasi-sdk/releases) for your platform and
63
+
expand it into a directory. Point the `WASI_SDK_PATH` variable to this directory and export a `CC` variable for the default Clang.
Copy file name to clipboardexpand all lines: docs/start/install.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -294,7 +294,7 @@ Then, go to [TensorFlow interface in Rust chapter](../develop/rust/wasinn/tf_plu
294
294
295
295
<!-- prettier-ignore -->
296
296
:::note
297
-
The Tensorflow Lite plugin is being deprecated from WasmEdge 0.14.0. We now compile TLS functions directly into Wasm for better portability.
297
+
The WasmEdge TLS plugin is being deprecated from WasmEdge 0.14.0. We now compile TLS functions directly into Wasm for better portability.
298
298
:::note
299
299
300
300
The WasmEdge TLS plug-in utilizes the native OpenSSL library to support HTTPS and TLS requests from WasmEdge sockets. To install WasmEdge with the TLS plug-in, run the following command.
0 commit comments