use cached::proc_macro::cached; use reqwest::Client; #[cached] pub fn get_reqwest_client() -> Client { Client::builder() .user_agent(format!("EWP/{}", env!("CARGO_PKG_VERSION"))) .build() .unwrap() }