diff --git a/Cargo.lock b/Cargo.lock index e5019d8255331..d89680116ebf1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1715,6 +1715,39 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3e368af43e418a04d52505cf3dbc23dda4e3407ae2fa99fd0e4f308ce546acc" +[[package]] +name = "cached" +version = "0.48.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "355face540df58778b96814c48abb3c2ed67c4878a8087ab1819c1fedeec505f" +dependencies = [ + "ahash 0.8.6", + "cached_proc_macro", + "cached_proc_macro_types", + "hashbrown 0.14.3", + "instant", + "once_cell", + "thiserror", +] + +[[package]] +name = "cached_proc_macro" +version = "0.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d52f526f7cbc875b296856ca8c964a9f6290556922c303a8a3883e3c676e6a1" +dependencies = [ + "darling 0.14.4", + "proc-macro2 1.0.78", + "quote 1.0.35", + "syn 1.0.109", +] + +[[package]] +name = "cached_proc_macro_types" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ade8366b8bd5ba243f0a58f036cc0ca8a2f069cff1a2351ef1cac6b083e16fc0" + [[package]] name = "cargo_toml" version = "0.18.0" @@ -1819,9 +1852,9 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.31" +version = "0.4.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" +checksum = "9f13690e35a5e4ace198e7beea2895d29f3a9cc55015fcebe6336bd2010af9eb" dependencies = [ "android-tzdata", "iana-time-zone", @@ -1829,7 +1862,7 @@ dependencies = [ "num-traits", "serde", "wasm-bindgen", - "windows-targets 0.48.5", + "windows-targets 0.52.0", ] [[package]] @@ -2517,6 +2550,16 @@ dependencies = [ "darling_macro 0.13.4", ] +[[package]] +name = "darling" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850" +dependencies = [ + "darling_core 0.14.4", + "darling_macro 0.14.4", +] + [[package]] name = "darling" version = "0.20.3" @@ -2541,6 +2584,20 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "darling_core" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2 1.0.78", + "quote 1.0.35", + "strsim 0.10.0", + "syn 1.0.109", +] + [[package]] name = "darling_core" version = "0.20.3" @@ -2566,6 +2623,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "darling_macro" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e" +dependencies = [ + "darling_core 0.14.4", + "quote 1.0.35", + "syn 1.0.109", +] + [[package]] name = "darling_macro" version = "0.20.3" @@ -9619,6 +9687,7 @@ name = "vdev" version = "0.1.0" dependencies = [ "anyhow", + "cached", "chrono", "clap 4.4.18", "clap-verbosity-flag", diff --git a/Cargo.toml b/Cargo.toml index 6f8165ac1bc5a..596b463fabe03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -122,6 +122,7 @@ members = [ ] [workspace.dependencies] +chrono = { version = "0.4.33", default-features = false, features = ["clock", "serde"] } pin-project = { version = "1.1.4", default-features = false } clap = { version = "4.4.18", default-features = false, features = ["derive", "error-context", "env", "help", "std", "string", "usage", "wrap_help"] } vrl = { version = "0.9.1", features = ["arbitrary", "cli", "test", "test_framework"] } @@ -244,7 +245,7 @@ bloomy = { version = "1.2.0", default-features = false, optional = true } bollard = { version = "0.15.0", default-features = false, features = ["ssl", "chrono"], optional = true } bytes = { version = "1.5.0", default-features = false, features = ["serde"] } bytesize = { version = "1.3.0", default-features = false } -chrono = { version = "0.4.31", default-features = false, features = ["serde"] } +chrono.workspace = true chrono-tz = { version = "0.8.5", default-features = false } cidr-utils = { version = "0.6.1", default-features = false } colored = { version = "2.1.0", default-features = false } diff --git a/lib/codecs/Cargo.toml b/lib/codecs/Cargo.toml index cd497819be4c7..2dbd70dd3c177 100644 --- a/lib/codecs/Cargo.toml +++ b/lib/codecs/Cargo.toml @@ -12,7 +12,7 @@ path = "tests/bin/generate-avro-fixtures.rs" [dependencies] apache-avro = { version = "0.16.0", default-features = false } bytes = { version = "1", default-features = false } -chrono = { version = "0.4", default-features = false } +chrono.workspace = true csv-core = { version = "0.1.10", default-features = false } derivative = { version = "2", default-features = false } dyn-clone = { version = "1", default-features = false } diff --git a/lib/enrichment/Cargo.toml b/lib/enrichment/Cargo.toml index eef4bcd716685..e88d71a6e2a73 100644 --- a/lib/enrichment/Cargo.toml +++ b/lib/enrichment/Cargo.toml @@ -7,6 +7,6 @@ publish = false [dependencies] arc-swap = { version = "1.6.0", default-features = false } -chrono = { version = "0.4.31", default-features = false } +chrono.workspace = true dyn-clone = { version = "1.0.16", default-features = false } vrl.workspace = true diff --git a/lib/fakedata/Cargo.toml b/lib/fakedata/Cargo.toml index ef8b8455ca6fb..cdd6824ec8c75 100644 --- a/lib/fakedata/Cargo.toml +++ b/lib/fakedata/Cargo.toml @@ -7,6 +7,6 @@ publish = false license = "MPL-2.0" [dependencies] -chrono = "0.4.31" +chrono.workspace = true fakedata_generator = "0.4.0" rand = "0.8.5" diff --git a/lib/loki-logproto/Cargo.toml b/lib/loki-logproto/Cargo.toml index d5b788445020d..f7b8bb28ad29f 100644 --- a/lib/loki-logproto/Cargo.toml +++ b/lib/loki-logproto/Cargo.toml @@ -14,7 +14,7 @@ bytes = { version = "1.5.0", default-features = false } snap = { version = "1.1.1", default-features = false } [dev-dependencies] -chrono = "0.4" +chrono.workspace = true [build-dependencies] prost-build = { version = "0.12" } diff --git a/lib/opentelemetry-proto/Cargo.toml b/lib/opentelemetry-proto/Cargo.toml index 8817a97fa074a..e106bea46ad44 100644 --- a/lib/opentelemetry-proto/Cargo.toml +++ b/lib/opentelemetry-proto/Cargo.toml @@ -11,7 +11,7 @@ tonic-build = { version = "0.10", default-features = false, features = ["prost", [dependencies] bytes = { version = "1.5.0", default-features = false, features = ["serde"] } -chrono = { version = "0.4.31", default-features = false, features = ["serde"] } +chrono.workspace = true hex = { version = "0.4.3", default-features = false, features = ["std"] } lookup = { package = "vector-lookup", path = "../vector-lookup", default-features = false } ordered-float = { version = "4.2.0", default-features = false } diff --git a/lib/vector-api-client/Cargo.toml b/lib/vector-api-client/Cargo.toml index 5cf8e5fee776e..164f8ab41257a 100644 --- a/lib/vector-api-client/Cargo.toml +++ b/lib/vector-api-client/Cargo.toml @@ -29,7 +29,7 @@ reqwest = { version = "0.11.23", default-features = false, features = ["json"] } tokio-tungstenite = { version = "0.20.1", default-features = false, features = ["connect", "rustls"] } # External libs -chrono = { version = "0.4.31", default-features = false, features = ["serde"] } +chrono.workspace = true clap.workspace = true url = { version = "2.5.0", default-features = false } uuid = { version = "1", default-features = false, features = ["serde", "v4"] } diff --git a/lib/vector-common/Cargo.toml b/lib/vector-common/Cargo.toml index 9d361142053af..66a377c19d064 100644 --- a/lib/vector-common/Cargo.toml +++ b/lib/vector-common/Cargo.toml @@ -17,11 +17,10 @@ default = [ btreemap = [] -byte_size_of = ["dep:bytes", "dep:chrono"] +byte_size_of = ["dep:bytes"] conversion = [ "dep:bytes", - "dep:chrono", "dep:snafu", ] @@ -44,7 +43,7 @@ tokenize = [ async-stream = "0.3.5" bytes = { version = "1.5.0", default-features = false, optional = true } chrono-tz = { version = "0.8.5", default-features = false, features = ["serde"] } -chrono = { version = "0.4", default-features = false, optional = true, features = ["clock"] } +chrono.workspace = true crossbeam-utils = { version = "0.8.19", default-features = false } derivative = { version = "2.2.0", default-features = false } futures = { version = "0.3.30", default-features = false, features = ["std"] } diff --git a/lib/vector-config/Cargo.toml b/lib/vector-config/Cargo.toml index f3ab8f1c32e1c..197198d0fd815 100644 --- a/lib/vector-config/Cargo.toml +++ b/lib/vector-config/Cargo.toml @@ -11,7 +11,7 @@ name = "integration" path = "tests/integration/lib.rs" [dependencies] -chrono = { version = "0.4.31", default-features = false } +chrono.workspace = true chrono-tz = { version = "0.8.5", default-features = false } encoding_rs = { version = "0.8", default-features = false, features = ["alloc", "serde"] } indexmap = { version = "2.1.0", default-features = false, features = ["std"] } diff --git a/lib/vector-core/Cargo.toml b/lib/vector-core/Cargo.toml index 45808c825b3bb..66ddea280b128 100644 --- a/lib/vector-core/Cargo.toml +++ b/lib/vector-core/Cargo.toml @@ -10,7 +10,7 @@ async-graphql = { version = "7.0.1", default-features = false, features = ["play async-trait = { version = "0.1", default-features = false } bitmask-enum = { version = "2.2.3", default-features = false } bytes = { version = "1.5.0", default-features = false, features = ["serde"] } -chrono = { version = "0.4.31", default-features = false, features = ["serde"] } +chrono.workspace = true crossbeam-utils = { version = "0.8.19", default-features = false } db-key = { version = "0.0.5", default-features = false, optional = true } dyn-clone = { version = "1.0.16", default-features = false } diff --git a/lib/vector-vrl/tests/Cargo.toml b/lib/vector-vrl/tests/Cargo.toml index 383580c1c73df..15cd6681d676c 100644 --- a/lib/vector-vrl/tests/Cargo.toml +++ b/lib/vector-vrl/tests/Cargo.toml @@ -11,7 +11,7 @@ vrl.workspace = true vector-vrl-functions = { path = "../../vector-vrl/functions" } ansi_term = "0.12" -chrono = "0.4" +chrono.workspace = true chrono-tz = "0.8" clap.workspace = true glob = "0.3" diff --git a/vdev/Cargo.toml b/vdev/Cargo.toml index f0b17b88c8340..2d9828a5f399f 100644 --- a/vdev/Cargo.toml +++ b/vdev/Cargo.toml @@ -9,7 +9,8 @@ publish = false [dependencies] anyhow = "1.0.79" -chrono = { version = "0.4.31", default-features = false, features = ["serde", "clock"] } +cached = "0.48.0" +chrono.workspace = true clap.workspace = true clap-verbosity-flag = "2.1.2" clap_complete = "4.4.9"