45 releases (25 breaking)

0.27.1 Apr 10, 2024
0.27.0 Mar 26, 2024
0.26.0 Jan 12, 2024
0.24.2 Oct 26, 2023
0.2.0 Oct 8, 2016

#5 in Network programming

Download history 922230/week @ 2024-01-14 978195/week @ 2024-01-21 1028517/week @ 2024-01-28 1023081/week @ 2024-02-04 1040466/week @ 2024-02-11 1003923/week @ 2024-02-18 1114348/week @ 2024-02-25 1106613/week @ 2024-03-03 1036093/week @ 2024-03-10 1044582/week @ 2024-03-17 1069902/week @ 2024-03-24 1126677/week @ 2024-03-31 1093858/week @ 2024-04-07 1132959/week @ 2024-04-14 1143820/week @ 2024-04-21 1064401/week @ 2024-04-28

4,494,368 downloads per month
Used in 2,383 crates (975 directly)

Apache-2.0 OR ISC OR MIT

39KB
649 lines

hyper-rustls

This is an integration between the Rustls TLS stack and the hyper HTTP library.

Build Status Crate Documentation

Release history

Release history can be found on GitHub.

License

hyper-rustls is distributed under the following three licenses:

  • Apache License version 2.0.
  • MIT license.
  • ISC license.

These are included as LICENSE-APACHE, LICENSE-MIT and LICENSE-ISC respectively. You may use this software under the terms of any of these licenses, at your option.

Running examples

server

cargo run --example server

client

cargo run --example client "https://docs.rs/hyper-rustls/latest/hyper_rustls/"

Crate features

This crate exposes a number of features to add support for different portions of hyper-util, rustls, and other dependencies.

Feature flag Enabled by default Description
aws-lc-rs yes Enables use of the AWS-LC backend for rustls
http1 yes Enables HTTP/1 support in hyper-util
http2 no Enables HTTP/2 support in hyper-util
webpki-tokio no Uses a compiled-in set of root certificates trusted by Mozilla (via webpki-roots)
native-tokio yes Use the platform's native certificate store at runtime (via rustls-native-certs)
ring no Enables use of the ring backend for rustls
tls12 yes Enables support for TLS 1.2 (only TLS 1.3 supported when disabled)
logging yes Enables logging of protocol-level diagnostics and errors via log
fips no Enables support for using a FIPS 140-3 compliant backend via AWS-LC (enables aws-lc-rs feature)

Dependencies

~11–35MB
~787K SLoC