49 releases (25 breaking)

0.27.5 Dec 20, 2024
0.27.3 Sep 4, 2024
0.27.2 May 27, 2024
0.27.0 Mar 26, 2024
0.2.0 Oct 8, 2016

#55 in Network programming

Download history 1031465/week @ 2024-12-27 1977518/week @ 2025-01-03 2444850/week @ 2025-01-10 2180412/week @ 2025-01-17 2293758/week @ 2025-01-24 2538338/week @ 2025-01-31 2728619/week @ 2025-02-07 2611194/week @ 2025-02-14 2898140/week @ 2025-02-21 3037520/week @ 2025-02-28 3294232/week @ 2025-03-07 3250695/week @ 2025-03-14 3861506/week @ 2025-03-21 2971217/week @ 2025-03-28 3274094/week @ 2025-04-04 2515295/week @ 2025-04-11

13,242,822 downloads per month
Used in 3,106 crates (1,019 directly)

Apache-2.0 OR ISC OR MIT

44KB
790 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)
rustls-platform-verifier no Use the operating system's verifier for certificate verification (via rustls-platform-verifier)
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

~12–36MB
~806K SLoC