refactor: replace lazy_static with LazyLock (#164)

* refactor: replace `lazy_static` with `LazyLock`

* update cursorrules

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Nugine
2025-07-10 23:50:46 +08:00
committed by GitHub
parent 58c5a633e2
commit 2525b66658
22 changed files with 76 additions and 109 deletions
Generated
-8
View File
@@ -7848,7 +7848,6 @@ dependencies = [
"http-body 1.0.1",
"hyper 1.6.0",
"hyper-util",
"lazy_static",
"libsystemd",
"matchit",
"mime_guess",
@@ -7940,7 +7939,6 @@ dependencies = [
name = "rustfs-common"
version = "0.0.5"
dependencies = [
"lazy_static",
"tokio",
"tonic",
]
@@ -8077,7 +8075,6 @@ dependencies = [
"dirs",
"hex",
"keyring",
"lazy_static",
"rfd 0.15.3",
"rust-embed",
"rust-i18n",
@@ -8098,7 +8095,6 @@ dependencies = [
"base64-simd",
"futures",
"jsonwebtoken",
"lazy_static",
"rand 0.9.1",
"rustfs-crypto",
"rustfs-ecstore",
@@ -8118,7 +8114,6 @@ name = "rustfs-lock"
version = "0.0.5"
dependencies = [
"async-trait",
"lazy_static",
"rand 0.9.1",
"rustfs-protos",
"serde",
@@ -8315,7 +8310,6 @@ dependencies = [
"datafusion",
"derive_builder",
"futures",
"lazy_static",
"parking_lot",
"rustfs-s3select-api",
"s3s",
@@ -8331,7 +8325,6 @@ dependencies = [
"bytes",
"http 1.3.1",
"hyper 1.6.0",
"lazy_static",
"rand 0.9.1",
"rustfs-utils",
"s3s",
@@ -8358,7 +8351,6 @@ dependencies = [
"hmac 0.12.1",
"hyper 1.6.0",
"hyper-util",
"lazy_static",
"local-ip-address",
"lz4",
"md-5",