pub fn all_declared() -> Vec<EnvVar>Expand description
Every environment variable read by this crate or by the platform layer it builds on, once each, sorted by name.
With the probe feature this also lists the probe crate’s own reads (its
crash spool and report directories, its crash-handler opt-out), because
such a build links that crate. The probe daemon and the symbolization
worker are separate processes that declare their own reads.
DECLARED lists what running-process itself reads. A process that
links running-process also runs running-process-platform-internal,
whose reads (platform::DECLARED_PLATFORM) include variables this crate
never touches directly – HOME, DISPLAY, the ConPTY switches. An
embedder scrubbing a child’s environment needs both, so this is the one
list to check.
A name read by both crates has one declaration, owned by the lower crate
and referred to from DECLARED, so it appears here once;
the_combined_inventory_is_sorted_unique_and_documented holds that.