17 releases (11 breaking)

0.17.0 Jan 6, 2024
0.16.3 Nov 4, 2023
0.16.1 Oct 30, 2023
0.14.1 Apr 29, 2023
0.8.0 Jun 2, 2022

#736 in Cryptography

Download history 178/week @ 2024-07-19 160/week @ 2024-07-26 197/week @ 2024-08-02 219/week @ 2024-08-09 181/week @ 2024-08-16 142/week @ 2024-08-23 165/week @ 2024-08-30 200/week @ 2024-09-06 175/week @ 2024-09-13 183/week @ 2024-09-20 168/week @ 2024-09-27 154/week @ 2024-10-04 122/week @ 2024-10-11 165/week @ 2024-10-18 149/week @ 2024-10-25 161/week @ 2024-11-01

618 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

220KB
5.5K SLoC

Embedded-TLS

CI crates.io docs.rs Matrix

Embedded-TLS is a Rust-native TLS 1.3 implementation that works in a no-std environment. The Rust crate was formerly known as drogue-tls. The implementation is work in progress, but the example clients should work against the rustls echo server.

The client supports both async and blocking modes. By default, the std feature is enabled, but can be disabled for bare metal usage.

To use the async mode, import embedded_tls::*. To use the blocking mode, import embedded_tls::blocking::*.

Some features and extensions are not yet implemented, have a look at open issues.

Only supports writing/receiving one frame at a time, hence using a frame buffer larger than 16k is not currently needed. You may use a lower frame buffer size, but there is no guarantee that it will be able to parse any TLS 1.3 frame.

Community

Dependencies

~4–13MB
~167K SLoC