deps: drop thread_local, lazy_static and once_cell

This is largely made possible by the addition of std::sync::OnceLock to
the standard library, and the memory pool available in regex-automata.
This commit is contained in:
Andrew Gallant
2023-09-28 16:01:59 -04:00
parent f16ea0812d
commit 6d17b3ed68
7 changed files with 43 additions and 75 deletions

33
Cargo.lock generated
View File

@@ -143,7 +143,6 @@ dependencies = [
"aho-corasick",
"bstr",
"glob",
"lazy_static",
"log",
"regex-automata",
"regex-syntax",
@@ -243,12 +242,10 @@ dependencies = [
"crossbeam-channel",
"crossbeam-deque",
"globset",
"lazy_static",
"log",
"memchr",
"regex",
"regex-automata",
"same-file",
"thread_local",
"walkdir",
"winapi-util",
]
@@ -288,12 +285,6 @@ dependencies = [
"libc",
]
[[package]]
name = "lazy_static"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "libc"
version = "0.2.148"
@@ -346,12 +337,6 @@ dependencies = [
"libm",
]
[[package]]
name = "once_cell"
version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
[[package]]
name = "packed_simd"
version = "0.3.9"
@@ -364,14 +349,13 @@ dependencies = [
[[package]]
name = "pcre2"
version = "0.2.4"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "486aca7e74edb8cab09a48d461177f450a5cca3b55e61d139f7552190e2bbcf5"
checksum = "9deb1d02d6a373ee392128ba86087352a986359f32a106e2e3b08cc90cc659c9"
dependencies = [
"libc",
"log",
"pcre2-sys",
"thread_local",
]
[[package]]
@@ -447,7 +431,6 @@ dependencies = [
"grep",
"ignore",
"jemallocator",
"lazy_static",
"log",
"serde",
"serde_derive",
@@ -543,16 +526,6 @@ dependencies = [
"unicode-width",
]
[[package]]
name = "thread_local"
version = "1.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152"
dependencies = [
"cfg-if",
"once_cell",
]
[[package]]
name = "unicode-ident"
version = "1.0.12"