Async TLS for the Tokio runtime
Go to file
Daniel McCarney 07e8da6e52
update rustls v0.20.7 -> v0.21.0 (#137)
* deps: update to rustls 0.21.0.

This commit updates tokio-rustls to use the freshly released Rustls
0.21.0 release tag, and the rustls-webpki fork of webpki.

* tests: improve server wait in early data test.

Previously the `test_0rtt` test had a hardcoded 1s sleep waiting for an
`openssl s_server` process to become ready.

If 1s waiting wasn't long enough, the test could fail with an error
like:

```
Error: Os { code: 10061, kind: ConnectionRefused, message: "No
connection could be made because the target machine actively refused
it." }
```

This commit replaces the hardcoded sleep with a sleep loop that
gradually increases the delay time up to a fixed maximum. This makes the
test run faster when the server is ready quickly and prevents an error
if it takes longer than 1s to stabilize.

* version: 0.23.4 -> 0.24.0
2023-03-30 17:44:26 +02:00
.github/workflows Fix early-data test (#132) 2023-02-19 08:40:05 +08:00
tokio-native-tls tokio-native-tls: remove unused dependencies (#133) 2023-03-30 23:29:17 +08:00
tokio-rustls update rustls v0.20.7 -> v0.21.0 (#137) 2023-03-30 17:44:26 +02:00
.gitignore Auto-generate TLS server certificate for unix platform (#8) 2020-04-03 10:16:23 -04:00
Cargo.toml tokio-rustls: release 0.14.1 (#27) 2020-08-31 22:22:46 +08:00
LICENSE Initial commit 2020-01-09 18:36:35 -05:00
README.md Fix the broken Guides link (#22) 2020-08-31 10:09:40 -04:00

Tokio Tls

Overview

This crate contains a collection of Tokio based TLS libraries.

Getting Help

First, see if the answer to your question can be found in the Tutorials or the API documentation. If the answer is not there, there is an active community in the Tokio Discord server. We would be happy to try to answer your question. Last, if that doesn't work, try opening an issue with the question.

Contributing

🎈 Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the Tokio project.

In addition to the crates in this repository, the Tokio project also maintains several other libraries, including:

  • tokio: A runtime for writing reliable, asynchronous, and slim applications with the Rust programming language.

  • tracing (formerly tokio-trace): A framework for application-level tracing and async-aware diagnostics.

  • mio: A low-level, cross-platform abstraction over OS I/O APIs that powers tokio.

  • bytes: Utilities for working with bytes, including efficient byte buffers.

Supported Rust Versions

Tokio is built against the latest stable, nightly, and beta Rust releases. The minimum version supported is the stable release from three months before the current stable release version. For example, if the latest stable Rust is 1.29, the minimum version supported is 1.26. The current Tokio version is not guaranteed to build on Rust versions earlier than the minimum supported version.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.