From 6adbfd8df1ee7a13e59c95c979a4ed26c07cb24b 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 | 82 ------------------------ Cargo.toml | 3 - lib/codecs/Cargo.toml | 1 - lib/docs-renderer/Cargo.toml | 1 - lib/file-source/Cargo.toml | 2 - lib/loki-logproto/Cargo.toml | 2 - lib/prometheus-parser/Cargo.toml | 1 - lib/vector-api-client/Cargo.toml | 1 - lib/vector-buffers/Cargo.toml | 3 - lib/vector-common/Cargo.toml | 14 +--- lib/vector-config/Cargo.toml | 1 - lib/vector-core/Cargo.toml | 10 +-- lib/vector-lib/Cargo.toml | 2 +- lib/vector-tap/Cargo.toml | 1 - lib/vector-vrl/tests/Cargo.toml | 4 -- lib/vector-vrl/web-playground/Cargo.toml | 1 - vdev/Cargo.toml | 1 - 17 files changed, 3 insertions(+), 127 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1031cf6defc08..d917cf7ca87b6 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", @@ -2877,12 +2876,6 @@ dependencies = [ "uuid", ] -[[package]] -name = "db-key" -version = "0.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b72465f46d518f6015d9cf07f7f3013a95dd6b9c2747c3d65ae0cce43929d14f" - [[package]] name = "dbl" version = "0.3.2" @@ -3111,7 +3104,6 @@ dependencies = [ "serde_json", "snafu 0.7.5", "tracing 0.1.41", - "tracing-subscriber", "vector-config", "vector-config-common", ] @@ -3552,8 +3544,6 @@ dependencies = [ "tracing 0.1.41", "vector-common", "vector-config", - "vector-config-common", - "vector-config-macros", "winapi", ] @@ -5521,22 +5511,14 @@ 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" dependencies = [ - "bytes 1.9.0", "chrono", "prost 0.12.6", "prost-build 0.12.6", "prost-types 0.12.6", - "snap", ] [[package]] @@ -6329,15 +6311,6 @@ dependencies = [ "num_enum_derive 0.6.1", ] -[[package]] -name = "num_enum" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e613fc340b2220f734a8595782c551f1250e969d87d3be1ae0579e8d4065179" -dependencies = [ - "num_enum_derive 0.7.3", -] - [[package]] name = "num_enum_derive" version = "0.5.11" @@ -6362,18 +6335,6 @@ dependencies = [ "syn 2.0.90", ] -[[package]] -name = "num_enum_derive" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" -dependencies = [ - "proc-macro-crate 3.2.0", - "proc-macro2 1.0.92", - "quote 1.0.37", - "syn 2.0.90", -] - [[package]] name = "num_threads" version = "0.1.6" @@ -6642,16 +6603,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 +7145,6 @@ checksum = "bf0668e945d7caa9b3e3a4cb360d7dd1f2613d62233f8846dbfb7ea3c3df0910" dependencies = [ "owo-colors", "pad", - "prettytable-rs", ] [[package]] @@ -7223,7 +7173,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", @@ -7349,7 +7298,6 @@ version = "0.1.0" dependencies = [ "indexmap 2.7.0", "nom", - "num_enum 0.7.3", "prost 0.12.6", "prost-build 0.12.6", "prost-types 0.12.6", @@ -10744,7 +10692,6 @@ dependencies = [ "indicatif", "itertools 0.13.0", "log", - "os_info", "owo-colors", "paste", "regex", @@ -10803,7 +10750,6 @@ dependencies = [ "bytesize", "chrono", "chrono-tz", - "cidr-utils", "clap", "colored", "console-subscriber", @@ -10826,7 +10772,6 @@ dependencies = [ "goauth", "governor", "greptimedb-ingester", - "grok", "h2 0.4.7", "hash_hasher", "hashbrown 0.14.5", @@ -10851,7 +10796,6 @@ dependencies = [ "lapin", "libc", "listenfd", - "logfmt", "loki-logproto", "lru", "maxminddb", @@ -10961,7 +10905,6 @@ dependencies = [ "clap", "futures 0.3.31", "graphql_client", - "indoc", "reqwest 0.11.26", "serde", "serde_json", @@ -10996,7 +10939,6 @@ dependencies = [ "metrics-util", "num-traits", "paste", - "pin-project", "proptest", "quickcheck", "rand 0.8.5", @@ -11013,8 +10955,6 @@ dependencies = [ "tracing-subscriber", "vector-common", "vector-config", - "vector-config-common", - "vector-config-macros", ] [[package]] @@ -11024,29 +10964,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 +11003,6 @@ dependencies = [ "url", "vector-config-common", "vector-config-macros", - "vector-core", "vrl", ] @@ -11108,7 +11038,6 @@ dependencies = [ name = "vector-core" version = "0.1.0" dependencies = [ - "async-graphql", "async-trait", "base64 0.22.1", "bitmask-enum", @@ -11118,10 +11047,8 @@ dependencies = [ "chrono-tz", "criterion", "crossbeam-utils", - "db-key", "derivative", "dyn-clone", - "enrichment", "enumflags2", "env-test-util", "float_eq", @@ -11173,9 +11100,7 @@ dependencies = [ "toml", "tonic 0.11.0", "tracing 0.1.41", - "tracing-core 0.1.33", "tracing-subscriber", - "typetag", "url", "urlencoding", "uuid", @@ -11183,7 +11108,6 @@ dependencies = [ "vector-common", "vector-config", "vector-config-common", - "vector-config-macros", "vector-lookup", "vrl", ] @@ -11253,7 +11177,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 +11209,10 @@ 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", @@ -11308,7 +11227,6 @@ version = "0.1.0" dependencies = [ "cargo-lock", "enrichment", - "getrandom 0.2.15", "gloo-utils", "serde", "serde-wasm-bindgen", diff --git a/Cargo.toml b/Cargo.toml index 5a7a68bdf7270..fd04d9155f0df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -298,7 +298,6 @@ bytes = { version = "1.9.0", default-features = false, features = ["serde"] } bytesize = { version = "1.3.0", default-features = false } chrono.workspace = true chrono-tz.workspace = true -cidr-utils = { version = "0.6.1", default-features = false } colored = { version = "2.1.0", default-features = false } csv = { version = "1.3", default-features = false } databend-client = { version = "0.22.2", default-features = false, features = ["rustls"], optional = true } @@ -312,7 +311,6 @@ flate2.workspace = true futures-util = { version = "0.3.29", default-features = false } glob.workspace = true governor = { version = "0.7.0", default-features = false, features = ["dashmap", "jitter", "std"], optional = true } -grok = { version = "2.0.0", default-features = false, optional = true } h2 = { version = "0.4.7", default-features = false, optional = true } hash_hasher = { version = "2.0.0", default-features = false } hashbrown = { version = "0.14.5", default-features = false, optional = true, features = ["ahash"] } @@ -332,7 +330,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 } diff --git a/lib/codecs/Cargo.toml b/lib/codecs/Cargo.toml index f4ab9561f75a0..fe763c7dbbe7c 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 09edd037f20c3..3aa30dc035b15 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 4e2626654cbfa..155bdb6126503 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/loki-logproto/Cargo.toml b/lib/loki-logproto/Cargo.toml index a68493cf9f9bc..934507ed3a9ad 100644 --- a/lib/loki-logproto/Cargo.toml +++ b/lib/loki-logproto/Cargo.toml @@ -10,8 +10,6 @@ publish = false [dependencies] prost.workspace = true prost-types.workspace = true -bytes = { version = "1.9.0", default-features = false } -snap = { version = "1.1.1", default-features = false } [dev-dependencies] chrono.workspace = true diff --git a/lib/prometheus-parser/Cargo.toml b/lib/prometheus-parser/Cargo.toml index 6a8c3f33475f0..4e1c261b094f2 100644 --- a/lib/prometheus-parser/Cargo.toml +++ b/lib/prometheus-parser/Cargo.toml @@ -11,7 +11,6 @@ license = "MPL-2.0" [dependencies] indexmap.workspace = true nom = "7.1.3" -num_enum = "0.7.3" prost.workspace = true prost-types.workspace = true snafu.workspace = true diff --git a/lib/vector-api-client/Cargo.toml b/lib/vector-api-client/Cargo.toml index 9cd8ebab0dc04..2d0fb2c2d5ccb 100644 --- a/lib/vector-api-client/Cargo.toml +++ b/lib/vector-api-client/Cargo.toml @@ -32,4 +32,3 @@ chrono.workspace = true clap.workspace = true url = { version = "2.5.4", default-features = false } uuid.workspace = true -indoc = { version = "2.0.5", default-features = false } diff --git a/lib/vector-buffers/Cargo.toml b/lib/vector-buffers/Cargo.toml index ce447917b0364..3e18607703cc9 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 ca95087facb29..ab600672574d4 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 5421117f0a4bd..0206476d7f66c 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 780df879b18cf..89c8170882bd7 100644 --- a/lib/vector-core/Cargo.toml +++ b/lib/vector-core/Cargo.toml @@ -9,17 +9,14 @@ 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"] } chrono.workspace = true chrono-tz.workspace = true crossbeam-utils = { version = "0.8.20", default-features = false } -db-key = { version = "0.0.5", default-features = false, optional = true } derivative = { version = "2.2.0", default-features = false } dyn-clone = { version = "1.0.17", default-features = false } -enrichment = { path = "../enrichment", optional = true } enumflags2 = { version = "0.7.10", default-features = false } float_eq = { version = "1.0", default-features = false } futures.workspace = true @@ -58,9 +55,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 +62,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,10 +95,9 @@ 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"] +vrl = [] test = ["vector-common/test", "proptest"] [[bench]] diff --git a/lib/vector-lib/Cargo.toml b/lib/vector-lib/Cargo.toml index d274b123635c3..b951c8d1694b9 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 bb9053bb552ba..ae42e2280b841 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 6e7ae90646cc1..8e132012d50d4 100644 --- a/lib/vector-vrl/tests/Cargo.toml +++ b/lib/vector-vrl/tests/Cargo.toml @@ -11,12 +11,8 @@ 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/lib/vector-vrl/web-playground/Cargo.toml b/lib/vector-vrl/web-playground/Cargo.toml index 13057cff7b374..6d5cf3a9dd3e3 100644 --- a/lib/vector-vrl/web-playground/Cargo.toml +++ b/lib/vector-vrl/web-playground/Cargo.toml @@ -14,7 +14,6 @@ vrl.workspace = true serde.workspace = true serde-wasm-bindgen = "0.6" gloo-utils = { version = "0.2", features = ["serde"] } -getrandom = { version = "0.2", features = ["js"] } vector-vrl-functions = { path = "../functions" } enrichment = { path = "../../enrichment" } diff --git a/vdev/Cargo.toml b/vdev/Cargo.toml index 98dfa71c154d6..71795ddf8ab00 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"