From 0ca17c5857c477e22a3f97b0d860bc457599680f Mon Sep 17 00:00:00 2001 From: Pavlos Rontidis Date: Mon, 27 Apr 2026 15:27:58 -0400 Subject: [PATCH] fix(vrl): restore stdlib functions in CLI and playground --- changelog.d/25267_vrl_get_env_var_playground.fix.md | 2 ++ lib/vector-vrl/cli/Cargo.toml | 4 ++++ lib/vector-vrl/web-playground/Cargo.toml | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 changelog.d/25267_vrl_get_env_var_playground.fix.md diff --git a/changelog.d/25267_vrl_get_env_var_playground.fix.md b/changelog.d/25267_vrl_get_env_var_playground.fix.md new file mode 100644 index 0000000000000..29de5d36fe6a5 --- /dev/null +++ b/changelog.d/25267_vrl_get_env_var_playground.fix.md @@ -0,0 +1,2 @@ +Restored the full VRL stdlib, including `get_env_var`, in the standalone VRL CLI and web playground by default. +authors: pront diff --git a/lib/vector-vrl/cli/Cargo.toml b/lib/vector-vrl/cli/Cargo.toml index 32f0b8ccce166..8e3c78597de8b 100644 --- a/lib/vector-vrl/cli/Cargo.toml +++ b/lib/vector-vrl/cli/Cargo.toml @@ -6,6 +6,10 @@ edition = "2024" publish = false license = "MPL-2.0" +[features] +# Enable the full VRL stdlib, which includes all available VRL functions. +default = ["vrl/stdlib"] + [dependencies] clap.workspace = true vector-vrl-functions.workspace = true diff --git a/lib/vector-vrl/web-playground/Cargo.toml b/lib/vector-vrl/web-playground/Cargo.toml index 9b3fbd6392576..59db0427b3698 100644 --- a/lib/vector-vrl/web-playground/Cargo.toml +++ b/lib/vector-vrl/web-playground/Cargo.toml @@ -11,6 +11,10 @@ license = "MPL-2.0" [lib] crate-type = ["cdylib"] +[features] +# Enable the full VRL stdlib, which includes all available VRL functions. +default = ["vrl/stdlib"] + [dependencies] wasm-bindgen = "0.2" vrl.workspace = true