mylloon.fr/src/misc/utils.rs

11 lines
229 B
Rust
Raw Normal View History

2023-04-11 22:45:44 +02:00
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()
}