Expand description
Audited startup-time environment defaulting.
std::env::set_var is unsafe in edition 2024 because mutating the environment while other
threads read it is undefined behavior on some platforms. This island exists so the CLI (a
forbid(unsafe_code) crate) can install product-default switches at the top of main,
before anything spawns a thread. It is the same class of tiny OS-interface island as
mmap.rs.
Functionsยง
- set_
default_ if_ unset - Sets
keytovalueunless the user already set it.