From fc70024b6f94164b3c264cdbe8a2eda7d2037c1b Mon Sep 17 00:00:00 2001 From: Pavlos Rontidis Date: Wed, 11 Dec 2024 17:56:53 -0500 Subject: [PATCH] chore(deps): remove some unused deps --- Cargo.lock | 47 --------------------------------- Cargo.toml | 2 -- lib/codecs/Cargo.toml | 1 - lib/docs-renderer/Cargo.toml | 1 - lib/file-source/Cargo.toml | 2 -- lib/vector-buffers/Cargo.toml | 3 --- lib/vector-common/Cargo.toml | 14 +--------- lib/vector-config/Cargo.toml | 1 - lib/vector-core/Cargo.toml | 6 ----- lib/vector-lib/Cargo.toml | 2 +- lib/vector-tap/Cargo.toml | 1 - lib/vector-vrl/tests/Cargo.toml | 3 --- vdev/Cargo.toml | 1 - 13 files changed, 2 insertions(+), 82 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1031cf6defc080..28da1ae45af379 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2250,7 +2250,6 @@ dependencies = [ "uuid", "vector-common", "vector-config", - "vector-config-common", "vector-config-macros", "vector-core", "vector-lookup", @@ -3111,7 +3110,6 @@ dependencies = [ "serde_json", "snafu 0.7.5", "tracing 0.1.41", - "tracing-subscriber", "vector-config", "vector-config-common", ] @@ -3552,8 +3550,6 @@ dependencies = [ "tracing 0.1.41", "vector-common", "vector-config", - "vector-config-common", - "vector-config-macros", "winapi", ] @@ -5521,12 +5517,6 @@ version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" -[[package]] -name = "logfmt" -version = "0.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "879777f0cc6f3646a044de60e4ab98c75617e3f9580f7a2032e6ad7ea0cd3054" - [[package]] name = "loki-logproto" version = "0.1.0" @@ -6642,16 +6632,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "os_info" -version = "3.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ca711d8b83edbb00b44d504503cd247c9c0bd8b0fa2694f2a1a3d8165379ce" -dependencies = [ - "log", - "windows-sys 0.52.0", -] - [[package]] name = "os_pipe" version = "1.1.4" @@ -7194,7 +7174,6 @@ checksum = "bf0668e945d7caa9b3e3a4cb360d7dd1f2613d62233f8846dbfb7ea3c3df0910" dependencies = [ "owo-colors", "pad", - "prettytable-rs", ] [[package]] @@ -7223,7 +7202,6 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eea25e07510aa6ab6547308ebe3c036016d162b8da920dbb079e3ba8acf3d95a" dependencies = [ - "csv", "encode_unicode 1.0.0", "is-terminal", "lazy_static", @@ -10744,7 +10722,6 @@ dependencies = [ "indicatif", "itertools 0.13.0", "log", - "os_info", "owo-colors", "paste", "regex", @@ -10851,7 +10828,6 @@ dependencies = [ "lapin", "libc", "listenfd", - "logfmt", "loki-logproto", "lru", "maxminddb", @@ -10871,7 +10847,6 @@ dependencies = [ "openssl-probe", "openssl-src", "ordered-float 4.5.0", - "paste", "percent-encoding", "pin-project", "portpicker", @@ -10996,12 +10971,10 @@ dependencies = [ "metrics-util", "num-traits", "paste", - "pin-project", "proptest", "quickcheck", "rand 0.8.5", "rkyv", - "serde", "serde_yaml 0.9.34+deprecated", "snafu 0.7.5", "temp-dir", @@ -11013,8 +10986,6 @@ dependencies = [ "tracing-subscriber", "vector-common", "vector-config", - "vector-config-common", - "vector-config-macros", ] [[package]] @@ -11024,29 +10995,20 @@ dependencies = [ "async-stream", "bytes 1.9.0", "chrono", - "chrono-tz", "crossbeam-utils", "derivative", "futures 0.3.31", "indexmap 2.7.0", "metrics", - "nom", - "ordered-float 4.5.0", "paste", "pin-project", - "quickcheck", - "quickcheck_macros", - "ryu", "serde", "serde_json", "smallvec", - "snafu 0.7.5", "stream-cancel", "tokio", "tracing 0.1.41", "vector-config", - "vector-config-common", - "vector-config-macros", "vrl", ] @@ -11072,7 +11034,6 @@ dependencies = [ "url", "vector-config-common", "vector-config-macros", - "vector-core", "vrl", ] @@ -11108,7 +11069,6 @@ dependencies = [ name = "vector-core" version = "0.1.0" dependencies = [ - "async-graphql", "async-trait", "base64 0.22.1", "bitmask-enum", @@ -11173,9 +11133,7 @@ dependencies = [ "toml", "tonic 0.11.0", "tracing 0.1.41", - "tracing-core 0.1.33", "tracing-subscriber", - "typetag", "url", "urlencoding", "uuid", @@ -11183,7 +11141,6 @@ dependencies = [ "vector-common", "vector-config", "vector-config-common", - "vector-config-macros", "vector-lookup", "vrl", ] @@ -11253,7 +11210,6 @@ dependencies = [ "portpicker", "serde_json", "serde_yaml 0.9.34+deprecated", - "snafu 0.7.5", "tokio", "tokio-stream", "tokio-tungstenite 0.20.1", @@ -11286,14 +11242,11 @@ dependencies = [ name = "vector-vrl-tests" version = "0.1.0" dependencies = [ - "ansi_term", "chrono", "chrono-tz", "clap", "enrichment", "glob", - "prettydiff", - "regex", "serde", "serde_json", "tikv-jemallocator", diff --git a/Cargo.toml b/Cargo.toml index 5a7a68bdf7270a..65fea2fcd75c35 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -332,7 +332,6 @@ itertools = { version = "0.13.0", default-features = false, optional = false, fe k8s-openapi = { version = "0.18.0", default-features = false, features = ["api", "v1_26"], optional = true } kube = { version = "0.82.0", default-features = false, features = ["client", "openssl-tls", "runtime"], optional = true } listenfd = { version = "1.0.1", default-features = false, optional = true } -logfmt = { version = "0.0.2", default-features = false, optional = true } lru = { version = "0.12.5", default-features = false, optional = true } maxminddb = { version = "0.24.0", default-features = false, optional = true } md-5 = { version = "0.10", default-features = false, optional = true } @@ -344,7 +343,6 @@ notify = { version = "7.0.0", default-features = false, features = ["macos_fseve openssl = { version = "0.10.68", default-features = false, features = ["vendored"] } openssl-probe = { version = "0.1.5", default-features = false } ordered-float = { version = "4.5.0", default-features = false } -paste = "1.0.15" percent-encoding = { version = "2.3.1", default-features = false } postgres-openssl = { version = "0.5.0", default-features = false, features = ["runtime"], optional = true } pulsar = { version = "6.3.0", default-features = false, features = ["tokio-runtime", "auth-oauth2", "flate2", "lz4", "snap", "zstd"], optional = true } diff --git a/lib/codecs/Cargo.toml b/lib/codecs/Cargo.toml index f4ab9561f75a0f..fe763c7dbbe7c8 100644 --- a/lib/codecs/Cargo.toml +++ b/lib/codecs/Cargo.toml @@ -37,7 +37,6 @@ tracing = { version = "0.1", default-features = false } vrl.workspace = true vector-common = { path = "../vector-common", default-features = false } vector-config = { path = "../vector-config", default-features = false } -vector-config-common = { path = "../vector-config-common", default-features = false } vector-config-macros = { path = "../vector-config-macros", default-features = false } vector-core = { path = "../vector-core", default-features = false, features = ["vrl"] } diff --git a/lib/docs-renderer/Cargo.toml b/lib/docs-renderer/Cargo.toml index 09edd037f20c33..3aa30dc035b155 100644 --- a/lib/docs-renderer/Cargo.toml +++ b/lib/docs-renderer/Cargo.toml @@ -11,6 +11,5 @@ serde.workspace = true serde_json.workspace = true snafu.workspace = true tracing = { version = "0.1.34", default-features = false } -tracing-subscriber = { version = "0.3.19", default-features = false, features = ["ansi", "env-filter", "fmt", "json", "registry", "tracing-log"] } vector-config = { path = "../vector-config" } vector-config-common = { path = "../vector-config-common" } diff --git a/lib/file-source/Cargo.toml b/lib/file-source/Cargo.toml index 4e2626654cbfa8..155bdb6126503d 100644 --- a/lib/file-source/Cargo.toml +++ b/lib/file-source/Cargo.toml @@ -16,8 +16,6 @@ glob.workspace = true scan_fmt = "0.2.6" vector-common = { path = "../vector-common", default-features = false } vector-config = { path = "../vector-config", default-features = false } -vector-config-common = { path = "../vector-config-common", default-features = false } -vector-config-macros = { path = "../vector-config-macros", default-features = false } [dependencies.bstr] version = "1.11" diff --git a/lib/vector-buffers/Cargo.toml b/lib/vector-buffers/Cargo.toml index ce447917b03649..3e18607703cc94 100644 --- a/lib/vector-buffers/Cargo.toml +++ b/lib/vector-buffers/Cargo.toml @@ -24,7 +24,6 @@ memmap2 = { version = "0.9.5", default-features = false } metrics.workspace = true num-traits = { version = "0.2.19", default-features = false } paste = "1.0.15" -pin-project.workspace = true rkyv = { version = "0.7.45", default-features = false, features = ["size_32", "std", "strict", "validation"] } serde.workspace = true snafu.workspace = true @@ -32,8 +31,6 @@ tokio-util = { version = "0.7.0", default-features = false } tokio = { version = "1.41.1", default-features = false, features = ["rt", "macros", "rt-multi-thread", "sync", "fs", "io-util", "time"] } tracing = { version = "0.1.34", default-features = false, features = ["attributes"] } vector-config = { path = "../vector-config", default-features = false } -vector-config-common = { path = "../vector-config-common", default-features = false } -vector-config-macros = { path = "../vector-config-macros", default-features = false } vector-common = { path = "../vector-common", default-features = false, features = ["byte_size_of"] } [dev-dependencies] diff --git a/lib/vector-common/Cargo.toml b/lib/vector-common/Cargo.toml index ca95087facb296..ab600672574d4e 100644 --- a/lib/vector-common/Cargo.toml +++ b/lib/vector-common/Cargo.toml @@ -24,7 +24,6 @@ conversion = [ ] encoding = [ - "dep:nom", "btreemap" ] @@ -32,39 +31,28 @@ sensitive_string = [] test = [] -tokenize = [ - "dep:nom", -] +tokenize = [] [dependencies] async-stream = "0.3.6" bytes = { version = "1.9.0", default-features = false, optional = true } chrono.workspace = true -chrono-tz.workspace = true crossbeam-utils = { version = "0.8.20", default-features = false } derivative = { version = "2.2.0", default-features = false } futures.workspace = true indexmap.workspace = true metrics.workspace = true -nom = { version = "7", optional = true } -ordered-float = { version = "4.5.0", default-features = false } paste = "1.0.15" pin-project.workspace = true -ryu = { version = "1", default-features = false } serde.workspace = true serde_json.workspace = true smallvec = { version = "1", default-features = false } -snafu.workspace = true stream-cancel = { version = "0.8.2", default-features = false } tokio = { version = "1.41.1", default-features = false, features = ["macros", "time"] } tracing = { version = "0.1.34", default-features = false } vrl.workspace = true vector-config = { path = "../vector-config" } -vector-config-common = { path = "../vector-config-common" } -vector-config-macros = { path = "../vector-config-macros" } [dev-dependencies] futures = { version = "0.3.31", default-features = false, features = ["async-await"] } tokio = { version = "1.41.1", default-features = false, features = ["rt", "time"] } -quickcheck = "1" -quickcheck_macros = "1" diff --git a/lib/vector-config/Cargo.toml b/lib/vector-config/Cargo.toml index 5421117f0a4bd6..0206476d7f66c8 100644 --- a/lib/vector-config/Cargo.toml +++ b/lib/vector-config/Cargo.toml @@ -33,4 +33,3 @@ vector-config-macros = { path = "../vector-config-macros" } [dev-dependencies] assert-json-diff = { version = "2", default-features = false } serde_with = { version = "3.11.0", default-features = false, features = ["std", "macros"] } -vector-core = { path = "../vector-core", default-features = false, features = ["test"] } diff --git a/lib/vector-core/Cargo.toml b/lib/vector-core/Cargo.toml index 780df879b18cf5..f8c64b021e2f97 100644 --- a/lib/vector-core/Cargo.toml +++ b/lib/vector-core/Cargo.toml @@ -9,7 +9,6 @@ publish = false unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ddsketch_extended)'] } [dependencies] -async-graphql = { version = "7.0.7", default-features = false, features = ["playground" ], optional = true } async-trait = { version = "0.1", default-features = false } bitmask-enum = { version = "2.2.5", default-features = false } bytes = { version = "1.9.0", default-features = false, features = ["serde"] } @@ -58,9 +57,6 @@ tokio-util = { version = "0.7.0", default-features = false, features = ["time"] toml.workspace = true tonic.workspace = true tracing = { version = "0.1.34", default-features = false } -tracing-core = { version = "0.1.26", default-features = false } -tracing-subscriber = { version = "0.3.19", default-features = false, features = ["std"] } -typetag = { version = "0.2.18", default-features = false } url = { version = "2", default-features = false } urlencoding = { version = "2.1.3", default-features = false } uuid.workspace = true @@ -68,7 +64,6 @@ vector-buffers = { path = "../vector-buffers", default-features = false } vector-common = { path = "../vector-common" } vector-config = { path = "../vector-config" } vector-config-common = { path = "../vector-config-common" } -vector-config-macros = { path = "../vector-config-macros" } vrl.workspace = true cfg-if.workspace = true @@ -102,7 +97,6 @@ tracing-subscriber = { version = "0.3.19", default-features = false, features = vector-common = { path = "../vector-common", default-features = false, features = ["test"] } [features] -api = ["dep:async-graphql"] default = [] lua = ["dep:mlua", "dep:tokio-stream", "vrl/lua"] vrl = ["dep:enrichment"] diff --git a/lib/vector-lib/Cargo.toml b/lib/vector-lib/Cargo.toml index d274b123635c3a..b951c8d1694b90 100644 --- a/lib/vector-lib/Cargo.toml +++ b/lib/vector-lib/Cargo.toml @@ -22,7 +22,7 @@ vector-tap = { path = "../vector-tap" } vrl = { workspace = true, optional = true } [features] -api = ["vector-core/api", "vector-tap/api"] +api = ["vector-tap/api"] api-client = ["dep:vector-api-client"] lua = ["vector-core/lua"] file-source = ["dep:file-source"] diff --git a/lib/vector-tap/Cargo.toml b/lib/vector-tap/Cargo.toml index bb9053bb552ba7..ae42e2280b841d 100644 --- a/lib/vector-tap/Cargo.toml +++ b/lib/vector-tap/Cargo.toml @@ -15,7 +15,6 @@ colored = { version = "2.1.0", default-features = false } futures.workspace = true glob.workspace = true serde_yaml = { version = "0.9.34", default-features = false } -snafu.workspace = true tokio = { version = "1.41.1", default-features = false, features = ["time"] } tokio-stream = { version = "0.1.16", default-features = false, features = ["sync"] } tokio-tungstenite = { version = "0.20.1", default-features = false } diff --git a/lib/vector-vrl/tests/Cargo.toml b/lib/vector-vrl/tests/Cargo.toml index 6e7ae90646cc1e..f891c872120779 100644 --- a/lib/vector-vrl/tests/Cargo.toml +++ b/lib/vector-vrl/tests/Cargo.toml @@ -11,12 +11,9 @@ enrichment = { path = "../../enrichment" } vrl.workspace = true vector-vrl-functions = { path = "../../vector-vrl/functions" } -ansi_term = "0.12" chrono.workspace = true clap.workspace = true glob.workspace = true -prettydiff = "0.8" -regex = "1" serde.workspace = true serde_json.workspace = true tracing-subscriber = { version = "0.3.19", default-features = false, features = ["fmt"] } diff --git a/vdev/Cargo.toml b/vdev/Cargo.toml index 98dfa71c154d6f..71795ddf8ab009 100644 --- a/vdev/Cargo.toml +++ b/vdev/Cargo.toml @@ -23,7 +23,6 @@ indexmap.workspace = true indicatif = { version = "0.17.9", features = ["improved_unicode"] } itertools = "0.13.0" log = "0.4.22" -os_info = { version = "3.9.0", default-features = false } # watch https://github.com/epage/anstyle for official interop with Clap owo-colors = { version = "4.1.0", features = ["supports-colors"] } paste = "1.0.15"