Skip to content

Commit

Permalink
chore(enrichment): avoid importing vector-common in enrichment module (
Browse files Browse the repository at this point in the history
…vectordotdev#17653)

We need to use enrichment tables in `vrl-wasm` and pulling vector-common
is not needed so better not using it.

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
  • Loading branch information
jdrouet committed Jun 9, 2023
1 parent 0dc450f commit 45a28f8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

8 changes: 5 additions & 3 deletions lib/enrichment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ publish = false

[dependencies]
arc-swap = { version = "1.6.0", default-features = false }
dyn-clone = { version = "1.0.11", default-features = false }
chrono = { version = "0.4.19", default-features = false }
vector-common = { path = "../vector-common", default-features = false, features = [ "btreemap", "conversion", "serde" ] }
vrl = { version = "0.4.0", default-features = false, features = ["diagnostic"] }
dyn-clone = { version = "1.0.11", default-features = false }
vrl = { version = "0.4.0", default-features = false, features = [
"compiler",
"diagnostic",
] }
2 changes: 1 addition & 1 deletion lib/enrichment/src/find_enrichment_table_records.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ impl FunctionExpression for FindEnrichmentTableRecordsFn {

#[cfg(test)]
mod tests {
use vector_common::TimeZone;
use vrl::compiler::state::RuntimeState;
use vrl::compiler::TargetValue;
use vrl::compiler::TimeZone;
use vrl::value;
use vrl::value::Secrets;

Expand Down
2 changes: 1 addition & 1 deletion lib/enrichment/src/get_enrichment_table_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl FunctionExpression for GetEnrichmentTableRecordFn {

#[cfg(test)]
mod tests {
use vector_common::TimeZone;
use vrl::compiler::prelude::TimeZone;
use vrl::compiler::state::RuntimeState;
use vrl::compiler::TargetValue;
use vrl::value;
Expand Down

0 comments on commit 45a28f8

Please sign in to comment.