rust-lang / book

The Rust Programming Language
https://doc.rust-lang.org/book/
Other
15.26k stars 3.44k forks source link

infra: switch to `rustls` in `reqwest` dep for `trpl` #4085

Closed chriskrycho closed 3 weeks ago

chriskrycho commented 3 weeks ago

Set reqwest.default-features = false, since it includes native-tls by default, and explicitly opt into rustls-tls instead. This also implicitly drops http2 support, but we do not use that in the examples, so that is actually just a small win.

Contributes to rust-lang/rust#131859, which is failing because using native-tis requires the environment to have an OpenSSL installation, and the rust-lang/rust CI environment does not. (This does not seem to be true. However, this is still worth merging!)