Posted on

Table of Contents

Context

Rustls is a popular TLS library in Rust. In 2024, Rustls added a new crypto provider called aws-lc-crypto, and promoted it to be default. Previously, ring was the default provider. I was happy with ring, and had problems compiling aws-lc-crypto as it requires a whole bunch of things. Aint nobody got time for that.

Switching back to ring

In your project's cargo.toml modify rustls like so:

rustls = { version = "0.23.4", default-features = false, features = ["ring"] }

Rustls documentation says to just add it as a crate feature. But they don't mention you also need to set default-features to false =)