mirror of
https://github.com/minio/minio-rs.git
synced 2025-12-06 15:26:51 +08:00
Remove os_info dep (#133)
os_info is too heavy, for the purposes of this library using the consts in std::env are enough Fixes #107
This commit is contained in:
parent
8ea83b45ae
commit
46bda8f960
@ -42,7 +42,6 @@ lazy_static = "1.5.0"
|
||||
log = "0.4.26"
|
||||
md5 = "0.7.0"
|
||||
multimap = "0.10.0"
|
||||
os_info = "3.10.0"
|
||||
percent-encoding = "2.3.1"
|
||||
rand = { version = "0.8.5", features = ["small_rng"] }
|
||||
regex = "1.11.1"
|
||||
|
||||
@ -127,11 +127,10 @@ impl ClientBuilder {
|
||||
pub fn build(self) -> Result<Client, Error> {
|
||||
let mut builder = reqwest::Client::builder().no_gzip();
|
||||
|
||||
let info = os_info::get();
|
||||
let mut user_agent = String::from("MinIO (")
|
||||
+ &info.os_type().to_string()
|
||||
+ std::env::consts::OS
|
||||
+ "; "
|
||||
+ info.architecture().unwrap_or("unknown")
|
||||
+ std::env::consts::ARCH
|
||||
+ ") minio-rs/"
|
||||
+ env!("CARGO_PKG_VERSION");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user