Expand description
Small environment-variable helpers shared by the kernel + every app crate’s config loader. Single source of truth so parsing behavior (empty-string filtering, bool truthiness) stays identical everywhere. Treats an empty/whitespace value the same as unset.
Functions§
- parse_
bool - Truthy-string bool (
1|true|yes|on), ordefaultwhen unset. - parse_
or - Parse
keyintoT, falling back todefaultwhen unset/empty/unparseable. - var
- The trimmed value of
key, orNonewhen unset/empty. - var_or
var(key)or a string default.