51 unstable releases

0.27.7 Jun 6, 2025
0.27.5 Dec 20, 2024
0.27.3 Sep 4, 2024
0.27.2 May 27, 2024
0.2.0 Oct 8, 2016

#4 in HTTP server

Download history 3579818/week @ 2025-11-26 4552895/week @ 2025-12-03 4665603/week @ 2025-12-10 4109372/week @ 2025-12-17 2254427/week @ 2025-12-24 3072060/week @ 2025-12-31 4922258/week @ 2026-01-07 4894977/week @ 2026-01-14 5572299/week @ 2026-01-21 5583402/week @ 2026-01-28 5821191/week @ 2026-02-04 5714899/week @ 2026-02-11 6189608/week @ 2026-02-18 6766274/week @ 2026-02-25 7907287/week @ 2026-03-04 7962838/week @ 2026-03-11

29,844,273 downloads per month
Used in 4,790 crates (1,145 directly)

Apache-2.0 OR ISC OR MIT

46KB
813 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

~11–40MB
~828K SLoC