Function vector_core::vrl::compile_vrl
source · pub fn compile_vrl(
source: &str,
fns: &[Box<dyn Function>],
state: &TypeState,
config: CompileConfig,
) -> Result<CompilationResult, DiagnosticList>
Expand description
Compiles a VRL program Vector metadata is set to read-only to prevent it from being mutated
§Errors
If the program fails to compile, a DiagnosticList
of errors is returned