Integration between hyper HTTP library and rustls TLS stack
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Balazs Horvath 18c47612c3 Fix all dependencies to use git.sly.so instead of local paths
- Fixed http, hyper, hyper-util, log, rustls-native-certs, rustls-platform-verifier, rustls, rustls-ring, tokio, tokio-rustls, tower-service, webpki-roots dependencies
- Fixed dev-dependencies: cfg-if, http-body-util, hyper-util, rustls, rustls-ring, tokio
2026-05-04 23:33:52 +02:00
examples Run tests on a random port 2026-02-23 12:39:47 +00:00
src chore: sync dependencies (monorepo) 2026-04-08 11:24:08 +02:00
tests Check for unexpected output if examples fail 2026-02-23 12:39:47 +00:00
.gitignore ci: rely on Cargo.lock for dependency versions 2025-10-26 12:00:56 +00:00
.rustfmt.toml Fix formatting with cargo fmt 2021-11-21 11:21:01 +00:00
Cargo.lock chore: sync dependencies (monorepo) 2026-04-06 15:19:51 +02:00
Cargo.toml Fix all dependencies to use git.sly.so instead of local paths 2026-05-04 23:33:52 +02:00
LICENSE Add licenses 2016-10-02 17:47:57 +01:00
LICENSE-APACHE Add licenses 2016-10-02 17:47:57 +01:00
LICENSE-ISC Add licenses 2016-10-02 17:47:57 +01:00
LICENSE-MIT Add licenses 2016-10-02 17:47:57 +01:00
README.md docs: add a feature rustls-platform-verifier in the list of README.md 2024-06-07 08:41:57 +00:00

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)