use std::time::Duration;
use reqwest::Client;
pub fn build() -> reqwest::Result<Client> {
Client::builder()
.user_agent(format!(
"repo-trust/{} (+https://github.com/Dmitrze/repo-trust)",
crate::VERSION
))
.timeout(Duration::from_secs(30))
.pool_max_idle_per_host(8)
.gzip(true)
.http2_prior_knowledge()
.build()
}