Replace lazy_static and OnceLock with LazyLock

This commit is contained in:
mdecimus
2024-08-09 15:38:19 +02:00
parent 39a64ed64c
commit f957cbb60f
10 changed files with 160 additions and 167 deletions

21
Cargo.lock generated
View File

@@ -3431,9 +3431,9 @@ dependencies = [
[[package]]
name = "libsqlite3-sys"
version = "0.28.0"
version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f"
checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149"
dependencies = [
"cc",
"pkg-config",
@@ -3901,7 +3901,6 @@ dependencies = [
"bincode",
"farmhash",
"jieba-rs",
"lazy_static",
"lru-cache",
"nohash",
"parking_lot",
@@ -4926,10 +4925,11 @@ dependencies = [
[[package]]
name = "redis"
version = "0.25.4"
version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0d7a6955c7511f60f3ba9e86c6d02b3c3f144f8c24b288d1f4e18074ab8bbec"
checksum = "e902a69d09078829137b4a5d9d082e0490393537badd7c91a3d69d14639e115f"
dependencies = [
"arc-swap",
"async-trait",
"bytes",
"combine",
@@ -4938,10 +4938,11 @@ dependencies = [
"futures-util",
"itoa",
"log",
"num-bigint",
"percent-encoding",
"pin-project-lite",
"rand",
"rustls 0.22.4",
"rustls 0.23.12",
"rustls-native-certs 0.7.1",
"rustls-pemfile 2.1.2",
"rustls-pki-types",
@@ -4949,7 +4950,7 @@ dependencies = [
"sha1_smol",
"socket2",
"tokio",
"tokio-rustls 0.25.0",
"tokio-rustls 0.26.0",
"tokio-util",
"url",
"webpki-roots 0.26.3",
@@ -5277,9 +5278,9 @@ checksum = "f3f94e84c073f3b85d4012b44722fa8842b9986d741590d4f2636ad0a5b14143"
[[package]]
name = "rusqlite"
version = "0.31.0"
version = "0.32.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b838eba278d213a8beaf485bd313fd580ca4505a00d5871caeb1457c55322cae"
checksum = "7753b721174eb8ff87a9a0e799e2d7bc3749323e773db92e0984debb00019d6e"
dependencies = [
"bitflags 2.6.0",
"fallible-iterator 0.3.0",
@@ -6002,7 +6003,6 @@ dependencies = [
"http-body-util",
"hyper 1.4.1",
"hyper-util",
"lazy_static",
"lru-cache",
"mail-auth",
"mail-builder",
@@ -6153,7 +6153,6 @@ dependencies = [
"flate2",
"foundationdb",
"futures",
"lazy_static",
"lru-cache",
"lz4_flex",
"mysql_async",