From 4f8f7c71826a44ab494cdc2d39d3830070bad509 Mon Sep 17 00:00:00 2001 From: Bruce Guenter Date: Thu, 30 Nov 2023 12:23:39 -0600 Subject: [PATCH] chore(performance): Update VRL to bring in `Box` key string change --- Cargo.lock | 2 +- Cargo.toml | 2 +- lib/vector-core/src/event/test/size_of.rs | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 09137d299299d..abd16468a5ddd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11055,7 +11055,7 @@ checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" [[package]] name = "vrl" version = "0.19.0" -source = "git+https://github.com/vectordotdev/vrl?branch=main#dc0311d03bd21c73c359a719b5cbdd17f01f63f3" +source = "git+https://github.com/vectordotdev/vrl?rev=e5587d4c9878658363e50f50fb12b9be0be41bf9#e5587d4c9878658363e50f50fb12b9be0be41bf9" dependencies = [ "aes", "ansi_term", diff --git a/Cargo.toml b/Cargo.toml index a9992b415f44a..4778ee138d357 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -155,7 +155,7 @@ toml = { version = "0.8.19", default-features = false, features = ["display", "p tonic = { version = "0.11", default-features = false, features = ["transport", "codegen", "prost", "tls", "tls-roots", "gzip"] } tonic-build = { version = "0.11", default-features = false, features = ["transport", "prost"] } uuid = { version = "1.10.0", features = ["v4", "v7", "serde"] } -vrl = { git = "https://github.com/vectordotdev/vrl", branch = "main", features = ["arbitrary", "cli", "test", "test_framework"] } +vrl = { git = "https://github.com/vectordotdev/vrl", rev = "e5587d4c9878658363e50f50fb12b9be0be41bf9", features = ["arbitrary", "cli", "test", "test_framework"] } [dependencies] pin-project.workspace = true diff --git a/lib/vector-core/src/event/test/size_of.rs b/lib/vector-core/src/event/test/size_of.rs index 6db19a96db1e1..e3fdc463fce1a 100644 --- a/lib/vector-core/src/event/test/size_of.rs +++ b/lib/vector-core/src/event/test/size_of.rs @@ -72,16 +72,16 @@ fn size_greater_than_allocated_size() { #[derive(Debug, Clone)] pub(crate) enum Action { Contains { - key: String, + key: KeyString, }, SizeOf, /// Insert a key/value pair into the [`LogEvent`] InsertFlat { - key: String, + key: KeyString, value: Value, }, Remove { - key: String, + key: KeyString, }, } @@ -89,15 +89,15 @@ impl Arbitrary for Action { fn arbitrary(g: &mut Gen) -> Self { match u8::arbitrary(g) % 3 { 0 => Action::InsertFlat { - key: String::from(Name::arbitrary(g)), + key: String::from(Name::arbitrary(g)).into(), value: Value::arbitrary(g), }, 1 => Action::SizeOf, 2 => Action::Contains { - key: String::from(Name::arbitrary(g)), + key: String::from(Name::arbitrary(g)).into(), }, 3 => Action::Remove { - key: String::from(Name::arbitrary(g)), + key: String::from(Name::arbitrary(g)).into(), }, _ => unreachable!(), }