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: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ traits from the `embedded-io` crate. No alloc or std lib required!
11
11
It offers two sets of APIs:
12
12
13
13
* A low-level `request` API which allows you to construct HTTP requests and write them to a `embedded-io` transport.
14
-
* A higher level `client` API which uses the `embedded-nal-async` (+ optional `embedded-tls` / `esp-mbedtls`) crates to establish TCP + TLS connections.
14
+
* A higher level `client` API which uses the `embedded-nal-async` (+ optional `embedded-tls` / `mbedtls-rs`) crates to establish TCP + TLS connections.
15
15
16
16
## example
17
17
@@ -30,7 +30,7 @@ let response = client
30
30
.unwrap();
31
31
```
32
32
33
-
The client is still lacking many features, but can perform basic HTTP GET/PUT/POST/DELETE requests with payloads. However, not all content types and status codes are implemented, and are added on a need basis. For TLS, it uses either `embedded-tls` or `esp-mbedtls` as the transport.
33
+
The client is still lacking many features, but can perform basic HTTP GET/PUT/POST/DELETE requests with payloads. However, not all content types and status codes are implemented, and are added on a need basis. For TLS, it uses either `embedded-tls` or `mbedtls-rs` as the transport.
34
34
35
35
NOTE: TLS verification is not supported in no_std environments for `embedded-tls`.
36
36
@@ -39,19 +39,19 @@ In addition to common headers like `.content_type()` on requests, broader `.head
39
39
If you are missing a feature or would like an improvement, please raise an issue or a PR.
40
40
41
41
## TLS 1.2*, 1.3 and Supported Cipher Suites
42
-
`reqwless` uses `embedded-tls` or `esp-mbedtls` to establish secure TLS connections for `https://..` urls.
42
+
`reqwless` uses `embedded-tls` or `mbedtls-rs` to establish secure TLS connections for `https://..` urls.
43
43
44
-
*TLS 1.2 is only supported with `esp-mbedtls`
44
+
*TLS 1.2 is only supported with `mbedtls-rs`
45
45
46
46
:warning: Note that both features cannot be used together and will cause a compilation error.
47
47
48
-
:warning: The released version of `reqwless` does not support `esp-mbedtls`. The reason for this is that `esp-mbedtls` is not yet published to crates.io. One should specify `reqwless` as a git dependency to use `esp-mbedtls`.
48
+
:warning: The released version of `reqwless` does not support `mbedtls-rs`. The reason for this is that `mbedtls-rs` is not yet published to crates.io. One should specify `reqwless` as a git dependency to use `mbedtls-rs`.
49
49
50
-
### esp-mbedtls
50
+
### mbedtls-rs
51
51
**Can only be used on esp32 boards**
52
-
`esp-mbedtls` supports TLS 1.2 and 1.3. It uses espressif's Rust wrapper over mbedtls, alongside optimizations such as hardware acceleration.
52
+
`mbedtls-rs` supports TLS 1.2 and 1.3. It uses espressif's Rust wrapper over mbedtls, alongside optimizations such as hardware acceleration.
53
53
54
-
To use, you need to enable the transitive dependency of `esp-mbedtls` for your SoC.
54
+
To use, you need to enable the transitive dependency of `mbedtls-rs` for your SoC.
55
55
Currently, the supported SoCs are:
56
56
57
57
-`esp32`
@@ -62,10 +62,10 @@ Currently, the supported SoCs are:
62
62
Cargo.toml:
63
63
64
64
```toml
65
-
reqwless = { version = "0.12.0", default-features = false, features = ["esp-mbedtls", "log"] }
66
-
esp-mbedtls = { git = "https://github.com/esp-rs/esp-mbedtls.git", features = ["esp32s3"] }
65
+
reqwless = { version = "0.12.0", default-features = false, features = ["mbedtls-rs", "log"] }
66
+
mbedtls-rs = { git = "https://github.com/esp-rs/mbedtls-rs.git", features = ["esp32s3"] }
67
67
```
68
-
<!-- TODO: Update this when esp-mbedtls switches to the unified hal -->
68
+
<!-- TODO: Update this when mbedtls-rs switches to the unified hal -->
0 commit comments