From 0975cb5374a532daf56c7f504cc86b078412781a Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 8 Dec 2024 23:00:24 +0900 Subject: [PATCH] cargo: drop dependency on config crate --- Cargo.lock | 48 ---------------------------------------- Cargo.toml | 1 - cli/Cargo.toml | 1 - lib/Cargo.toml | 1 - lib/testutils/Cargo.toml | 1 - 5 files changed, 52 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index de46deb1b8..e83af275f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -457,20 +457,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "config" -version = "0.13.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23738e11972c7643e4ec947840fc463b6a571afcd3e735bdfce7d03c7a784aca" -dependencies = [ - "async-trait", - "lazy_static", - "nom", - "pathdiff", - "serde", - "toml", -] - [[package]] name = "console" version = "0.15.8" @@ -1970,7 +1956,6 @@ dependencies = [ "clap_complete", "clap_complete_nushell", "clap_mangen", - "config", "criterion", "crossterm", "dirs", @@ -2025,7 +2010,6 @@ dependencies = [ "chrono", "chrono-english", "clru", - "config", "criterion", "digest", "either", @@ -2257,12 +2241,6 @@ dependencies = [ "libc", ] -[[package]] -name = "minimal-lexical" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" - [[package]] name = "miniz_oxide" version = "0.7.4" @@ -2326,16 +2304,6 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" -[[package]] -name = "nom" -version = "7.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" -dependencies = [ - "memchr", - "minimal-lexical", -] - [[package]] name = "nu-ansi-term" version = "0.46.0" @@ -2458,12 +2426,6 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" -[[package]] -name = "pathdiff" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" - [[package]] name = "percent-encoding" version = "2.3.1" @@ -3309,7 +3271,6 @@ name = "testutils" version = "0.24.0" dependencies = [ "async-trait", - "config", "futures 0.3.31", "git2", "hex", @@ -3467,15 +3428,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "toml" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" -dependencies = [ - "serde", -] - [[package]] name = "toml_datetime" version = "0.6.8" diff --git a/Cargo.toml b/Cargo.toml index 042e5151e8..a29e97cc1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,6 @@ chrono = { version = "0.4.39", default-features = false, features = [ ] } chrono-english = { version = "0.1.7" } clru = "0.6.2" -config = { version = "0.13.4", default-features = false, features = ["toml"] } criterion = "0.5.1" crossterm = { version = "0.27", default-features = false } digest = "0.10.7" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index a2d3400a91..a336c3ca38 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -56,7 +56,6 @@ clap-markdown = { workspace = true } clap_complete = { workspace = true } clap_complete_nushell = { workspace = true } clap_mangen = { workspace = true } -config = { workspace = true } criterion = { workspace = true, optional = true } crossterm = { workspace = true } dirs = { workspace = true } diff --git a/lib/Cargo.toml b/lib/Cargo.toml index aca359958a..232cea09c7 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -39,7 +39,6 @@ bstr = { workspace = true } chrono = { workspace = true } chrono-english = { workspace = true } clru = { workspace = true } -config = { workspace = true } digest = { workspace = true } either = { workspace = true } futures = { workspace = true } diff --git a/lib/testutils/Cargo.toml b/lib/testutils/Cargo.toml index 8bc3309ef0..d27777c2d7 100644 --- a/lib/testutils/Cargo.toml +++ b/lib/testutils/Cargo.toml @@ -16,7 +16,6 @@ readme = { workspace = true } [dependencies] async-trait = { workspace = true } -config = { workspace = true } futures = { workspace = true } git2 = { workspace = true } hex = { workspace = true }