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/contribute/source/plugin/rusttls.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,12 @@
2
2
sidebar_position: 8
3
3
---
4
4
5
-
# Build with Rustls Plug-in
5
+
# (DEPRECATED after `0.14.0`) Build with Rustls Plug-in
6
+
7
+
<!-- prettier-ignore -->
8
+
:::note
9
+
This plug-in has been deprecated after WasmEdge `0.14.0` because the `rustls` is replaced by [`reqwest`](../../../develop/rust/http_service/client.md#the-reqwest-api).
10
+
:::
6
11
7
12
The WasmEdge Rustls plug-in is a replacement for the OpenSSL plug-in in WasmEdge. It provides a Rust-friendly interface to the Rustls library, which is a modern, fast, and more secure alternative to OpenSSL.
In the HTTPS version of `Cargo.toml`, you just need to import the standard [hyper-rustls](https://crates.io/crates/hyper-rustls), [rustls](https://crates.io/crates/rustls) and [webpki-roots](https://crates.io/crates/webpki-roots) crates with the same patches as above.
140
140
141
-
```
141
+
```toml
142
142
[patch.crates-io]
143
143
tokio = { git = "https://github.com/second-state/wasi_tokio.git", branch = "v1.36.x" }
Copy file name to clipboardexpand all lines: docs/develop/rust/setup.md
+6-8
Original file line number
Diff line number
Diff line change
@@ -36,17 +36,16 @@ rustup target add wasm32-wasi
36
36
37
37
### Async networking with tokio
38
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
41
-
compiling a tokio app to Wasm.
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 compiling a tokio app to Wasm.
@@ -59,13 +58,12 @@ on MacOS, you need a special version of the Clang tool, released from the offici
59
58
60
59
> 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
60
62
-
[Download the latest wasi-sdk release](https://github.com/WebAssembly/wasi-sdk/releases) for your platform and
61
+
[Download the latest wasi-sdk release](https://github.com/WebAssembly/wasi-sdk/releases) for your platform and
63
62
expand it into a directory. Point the `WASI_SDK_PATH` variable to this directory and export a `CC` variable for the default Clang.
To install multiple plug-ins, you can pass a list of plug-ins with the `--plugins` option. For example, the following command installs the `wasi_logging`` and the`wasi_nn-ggml` plug-ins. The `wasi_logging` plug-in allows the Rust [log::Log](https://crates.io/crates/log) API to compile into Wasm and run in WasmEdge.
59
+
To install multiple plug-ins, you can pass a list of plug-ins with the `--plugins` option. For example, the following command installs the `wasi_logging`` and the`wasi_nn-ggml` plug-ins. The `wasi_logging` plug-in allows the Rust [log::Log](https://crates.io/crates/log) API to compile into Wasm and run in WasmEdge.
The zlib is required for compiling and running many existing C / C++ / Rust apps in Wasm. Most noticeably, it is required for the Python port to Wasm. It supports the standard [zlib.h](https://github.com/madler/zlib/blob/develop/zlib.h) C API.
257
+
The zlib is required for compiling and running many existing C / C++ / Rust apps in Wasm. Most noticeably, it is required for the Python port to Wasm. It supports the standard [zlib.h](https://github.com/madler/zlib/blob/develop/zlib.h) C API.
@@ -289,7 +289,6 @@ If you install this plug-in WITHOUT installer, you can [refer to here to install
289
289
290
290
Then, go to [TensorFlow interface in Rust chapter](../develop/rust/wasinn/tf_plugin.md) to see how to run `WasmEdge-TensorFlow` functions.
291
291
292
-
293
292
### TLS plug-in
294
293
295
294
<!-- prettier-ignore -->
@@ -299,7 +298,7 @@ The WasmEdge TLS plugin is being deprecated from WasmEdge 0.14.0. We now compile
299
298
300
299
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.
Copy file name to clipboardexpand all lines: docs/start/wasmedge/extensions/plugins.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The following lists are the WasmEdge official released plug-ins. Users can insta
26
26
|[WasmEdge-TensorflowLite](../../../contribute/source/plugin/tensorflowlite.md)| A native library for inferring TensorFlow-Lite models. |`manylinux2014 (x86_64, aarch64)`<br/>`ubuntu 20.04 (x86_64)`<br/>`darwin (x86_64, arm64)`<br/>(since `0.13.0`) |[Rust](https://crates.io/crates/wasmedge_tensorflow_interface) (0.3.0) |[Steps](../../../contribute/source/plugin/tensorflowlite.md)|
27
27
| WasmEdge-OpenCV | Very popular utility functions to process images and videos for AI input/output. |`manylinux2014 (x86_64, aarch64)`<br/>`ubuntu 20.04 (x86_64)`<br/>`darwin (x86_64, arm64)`<br/>(since `0.13.3`) | Rust ||
28
28
|[WasmEdge-eBPF](../../../contribute/source/plugin/ebpf.md)| A native library for inferring eBPF applications |`manylinux2014 (x86_64, aarch64)`<br/>`ubuntu 20.04 (x86_64)`<br/>(since `0.13.2`) | Rust |[Steps](../../../contribute/source/plugin/ebpf.md)|
29
-
|[WasmEdge-rustls](../../../contribute/source/plugin/rusttls.md)| A native library for inferring Rust and TLS Library |`manylinux2014 (x86_64, aarch64)`<br/>`ubuntu 20.04 (x86_64)`<br/>`darwin (x86_64, arm64)`<br/>(since `0.13.0`) |[Rust](https://crates.io/crates/wasmedge_rustls_api)|[Steps](../../../contribute/source/plugin/rusttls.md)|
29
+
|[WasmEdge-rustls](../../../contribute/source/plugin/rusttls.md)(DEPRECATED) | A native library for inferring Rust and TLS Library |`manylinux2014 (x86_64, aarch64)`<br/>`ubuntu 20.04 (x86_64)`<br/>`darwin (x86_64, arm64)`<br/>(since `0.13.0`, until `0.13.5`) |[Rust](https://crates.io/crates/wasmedge_rustls_api)|[Steps](../../../contribute/source/plugin/rusttls.md)|
0 commit comments