How to Use the rustls Crate for TLS

Enable the rustls-tls feature in reqwest to use the pure Rust TLS library for secure connections.

Enable TLS in your Rust project by adding the rustls-tls feature to the reqwest crate in your Cargo.toml.

[dependencies]
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }

This configuration switches the underlying TLS implementation from the default OpenSSL to rustls, a pure Rust TLS library.