Skip to main content

capture_caller_env

Function capture_caller_env 

Source
pub fn capture_caller_env() -> Vec<LaunchEnv>
Expand description

Capture the caller’s environment, filtered through the denylist.

Iterates std::env::vars_os() so non-UTF-8 keys and values do not panic. Lossy decoding is applied via capture_env_from_os: we choose lossy over reject because env values are an open universe, and refusing on the first non-UTF-8 byte would break callers on systems with non-UTF-8 locales for reasons unrelated to anything rtm cares about.