Skip to main content

Module tls_provider

Module tls_provider 

Source
Expand description

The TLS crypto provider every reqwest client needs.

reqwest 0.13 is built with rustls-no-provider so the tree keeps ring (no aws-lc build), and it refuses to build a client, even one for plain http, until a provider is installed for the process. Call install_ring_provider first thing in each binary that builds a client, and once in each test binary that does.

Functionsยง

install_ring_provider
Installs ring as the process-wide rustls provider. Safe to call more than once, and a provider installed earlier by anything else is left alone.