File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ vector-lib.workspace = true
230230vector-config.workspace = true
231231vector-config-common.workspace = true
232232vector-config-macros.workspace = true
233- vector-vrl-functions. workspace = true
233+ vector-vrl-functions = { workspace = true , features = [ " vrl-metrics " ] }
234234vector-vrl-metrics = { path = " lib/vector-vrl-metrics" }
235235loki-logproto = { path = " lib/loki-logproto" , optional = true }
236236
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ license = "MPL-2.0"
1010vrl.workspace = true
1111enrichment = { path = " ../../enrichment" }
1212dnstap-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 ]
1616default = []
1717dnstap = [" dep:dnstap-parser" ]
18+ vrl-metrics = [" dep:vector-vrl-metrics" ]
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ vrl.workspace = true
1717serde.workspace = true
1818web-sys = { version = " 0.3" , features = [" Window" , " Performance" ] }
1919gloo-utils = { version = " 0.2" , features = [" serde" ] }
20- vector-vrl-functions. workspace = true
20+ vector-vrl-functions = { workspace = true , features = [] }
2121enrichment = { path = " ../../enrichment" }
2222# Required per https://docs.rs/getrandom/latest/getrandom/#webassembly-support
2323getrandom = { version = " 0.2.15" , features = [" js" ] }
You can’t perform that action at this time.
0 commit comments