Skip to content

Commit 1190997

Browse files
committed
Disable vector-vrl-metrics in vrl web-playground
1 parent baf77b7 commit 1190997

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ vector-lib.workspace = true
230230
vector-config.workspace = true
231231
vector-config-common.workspace = true
232232
vector-config-macros.workspace = true
233-
vector-vrl-functions.workspace = true
233+
vector-vrl-functions = { workspace = true, features = ["vrl-metrics"] }
234234
vector-vrl-metrics = { path = "lib/vector-vrl-metrics" }
235235
loki-logproto = { path = "lib/loki-logproto", optional = true }
236236

lib/vector-vrl/functions/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ license = "MPL-2.0"
1010
vrl.workspace = true
1111
enrichment = { path = "../../enrichment" }
1212
dnstap-parser = { path = "../../dnstap-parser", optional = true }
13-
vector-vrl-metrics = { path = "../../vector-vrl-metrics" }
13+
vector-vrl-metrics = { path = "../../vector-vrl-metrics", optional = true }
1414

1515
[features]
1616
default = []
1717
dnstap = ["dep:dnstap-parser"]
18+
vrl-metrics = ["dep:vector-vrl-metrics"]

lib/vector-vrl/functions/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ pub fn all() -> Vec<Box<dyn Function>> {
4141
let functions = vrl::stdlib::all()
4242
.into_iter()
4343
.chain(secret_functions())
44-
.chain(enrichment::vrl_functions())
45-
.chain(vector_vrl_metrics::all());
44+
.chain(enrichment::vrl_functions());
4645

4746
#[cfg(feature = "dnstap")]
4847
let functions = functions.chain(dnstap_parser::vrl_functions());
4948

49+
#[cfg(feature = "vrl-metrics")]
50+
let functions = functions.chain(vector_vrl_metrics::all());
51+
5052
functions.collect()
5153
}

lib/vector-vrl/web-playground/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ vrl.workspace = true
1717
serde.workspace = true
1818
web-sys = { version = "0.3", features = ["Window", "Performance"] }
1919
gloo-utils = { version = "0.2", features = ["serde"] }
20-
vector-vrl-functions.workspace = true
20+
vector-vrl-functions = { workspace = true, features = [] }
2121
enrichment = { path = "../../enrichment" }
2222
# Required per https://docs.rs/getrandom/latest/getrandom/#webassembly-support
2323
getrandom = { version = "0.2.15", features = ["js"] }

0 commit comments

Comments
 (0)