diff --git a/Cargo.lock b/Cargo.lock
index 26424790..1db4030e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4012,7 +4012,6 @@ dependencies = [
"itertools 0.14.0",
"jsonwebtoken",
"lazy_static",
- "log",
"madmin",
"policy",
"rand 0.8.5",
@@ -5845,7 +5844,6 @@ dependencies = [
"itertools 0.14.0",
"jsonwebtoken",
"lazy_static",
- "log",
"madmin",
"rand 0.8.5",
"regex",
@@ -6719,7 +6717,6 @@ dependencies = [
"chrono",
"dioxus",
"dirs 6.0.0",
- "futures-util",
"hex",
"keyring",
"lazy_static",
diff --git a/Cargo.toml b/Cargo.toml
index 2e97d0eb..20f6a009 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -106,6 +106,7 @@ tokio-rustls = { version = "0.26", default-features = false }
tokio-stream = "0.1.17"
tokio-util = { version = "0.7.13", features = ["io", "compat"] }
tower = { version = "0.5.2", features = ["timeout"] }
+tower-http = { version = "0.6.2", features = ["cors"] }
tracing = "0.1.41"
tracing-error = "0.2.1"
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "time"] }
@@ -117,13 +118,11 @@ uuid = { version = "1.15.1", features = [
"fast-rng",
"macro-diagnostics",
] }
-log = "0.4.25"
axum = "0.7.9"
axum-server = { version = "0.6", features = ["tls-rustls"] }
md-5 = "0.10.6"
workers = { path = "./common/workers" }
test-case = "3.3.1"
-zip = "2.2.3"
snafu = "0.8.5"
diff --git a/cli/rustfs-gui/Cargo.toml b/cli/rustfs-gui/Cargo.toml
index c9af2fc3..faca71ee 100644
--- a/cli/rustfs-gui/Cargo.toml
+++ b/cli/rustfs-gui/Cargo.toml
@@ -10,7 +10,6 @@ version.workspace = true
chrono = { workspace = true }
dioxus = { workspace = true, features = ["router"] }
dirs = { workspace = true }
-futures-util = { workspace = true }
hex = { workspace = true }
keyring = { workspace = true }
lazy_static = { workspace = true }
diff --git a/iam/Cargo.toml b/iam/Cargo.toml
index 5afc93c5..fce678b6 100644
--- a/iam/Cargo.toml
+++ b/iam/Cargo.toml
@@ -11,7 +11,6 @@ workspace = true
[dependencies]
tokio.workspace = true
-log.workspace = true
time = { workspace = true, features = ["serde-human-readable"] }
serde = { workspace = true, features = ["derive", "rc"] }
ecstore = { path = "../ecstore" }
diff --git a/iam/src/cache.rs b/iam/src/cache.rs
index f1692116..b5dd20c3 100644
--- a/iam/src/cache.rs
+++ b/iam/src/cache.rs
@@ -6,12 +6,12 @@ use std::{
};
use arc_swap::{ArcSwap, AsRaw, Guard};
-use log::warn;
use policy::{
auth::UserIdentity,
policy::{Args, PolicyDoc},
};
use time::OffsetDateTime;
+use tracing::warn;
use crate::store::{GroupInfo, MappedPolicy};
@@ -63,7 +63,7 @@ impl Cache {
let mut new = CacheEntity::clone(&cur);
op(&mut new);
- // 使用cas原子替换内容
+ // 使用 cas 原子替换内容
let prev = target.compare_and_swap(&*cur, Arc::new(new));
let swapped = Self::ptr_eq(&*cur, &*prev);
if swapped {
@@ -112,8 +112,8 @@ impl CacheInner {
// todo!()
// }
- // /// 如果是临时用户,返回Ok(Some(partent_name)))
- // /// 如果不是临时用户,返回Ok(None)
+ // /// 如果是临时用户,返回 Ok(Some(partent_name)))
+ // /// 如果不是临时用户,返回 Ok(None)
// fn is_temp_user(&self, user_name: &str) -> crate::Result