Skip to content

Commit

Permalink
chore: update vrl to 0.4.0 (#17378)
Browse files Browse the repository at this point in the history
This upgrades VRL to `0.4.0`


Notable changes:
- This is the first crates.io release for VRL. It's no longer a git
dependency!
- All VRL macros are now exported at the root, which required some
import changes
- Previously the `vrl` crate had an internal `test` feature that was
un-intentionally enabled. This was caught and fixed in recent VRL
refactoring. Vector was relying on this in a few places where is
shouldn't be (all related to converting an `f64` into a `Value`. That
implementation is normally only available for tests, since the `f64`
needs to be checked for `NaN` first). As a quick fix, to keep existing
behavior, the `test` feature is now explicitly enabled for VRL. [An
issue](#17377) was created
to track this and remove it.
  • Loading branch information
fuchsnj authored May 23, 2023
1 parent c425006 commit ac887ad
Show file tree
Hide file tree
Showing 43 changed files with 99 additions and 268 deletions.
269 changes: 49 additions & 220 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ hex = { version = "0.4.3", default-features = false, optional = true }
sha2 = { version = "0.10.6", default-features = false, optional = true }

# VRL Lang
vrl = { package = "vrl", git = "https://github.com/vectordotdev/vrl", rev = "v0.3.0", features = ["cli"] }
vrl = { package = "vrl", version = "0.4.0", features = ["cli", "test"] }

# External libs
arc-swap = { version = "1.6", default-features = false, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion lib/codecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ snafu = { version = "0.7.4", default-features = false, features = ["futures"] }
syslog_loose = { version = "0.18", default-features = false, optional = true }
tokio-util = { version = "0.7", default-features = false, features = ["codec"] }
tracing = { version = "0.1", default-features = false }
vrl = { git = "https://github.com/vectordotdev/vrl", rev = "v0.3.0", default-features = false, features = ["value"] }
vrl = { version = "0.4.0", default-features = false, features = ["value"] }
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 }
Expand Down
2 changes: 1 addition & 1 deletion lib/codecs/src/encoding/format/avro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ mod tests {
use bytes::BytesMut;
use indoc::indoc;
use vector_core::event::{LogEvent, Value};
use vrl::value::btreemap;
use vrl::btreemap;

use super::*;

Expand Down
2 changes: 1 addition & 1 deletion lib/codecs/src/encoding/format/gelf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ mod tests {
use super::*;
use chrono::{DateTime, NaiveDateTime, Utc};
use vector_core::event::{Event, EventMetadata};
use vrl::value::btreemap;
use vrl::btreemap;
use vrl::value::Value;

fn do_serialize(
Expand Down
Loading

0 comments on commit ac887ad

Please sign in to comment.