This PR allows you to use webpki roots without having to enable ring, and allows custom providers to test. It also immediately shaved 90KB off my binary for a personal embedded project I'm working on without resorting to a hack like this:
pub fn make_client() -> Result<Client, Error> {
let mut builder = Client::builder();
for cert in webpki_root_certs::TLS_SERVER_ROOT_CERTS {
builder = builder.add_root_certificate(Certificate::from_der(cert).unwrap())
}
builder.build()
}
This PR allows you to use webpki roots without having to enable ring, and allows custom providers to test. It also immediately shaved 90KB off my binary for a personal embedded project I'm working on without resorting to a hack like this: