adotenv-process
Explicit process-environment mutation for
adotenv loaded environments.
use load_cascade;
use apply;
let loaded = load_cascade?;
// The caller must guarantee no concurrent process-environment access.
unsafe ;
apply validates every key and value before the first mutation. It sets only
keys from the loaded environment and cannot roll changes back. The process
environment is global, so the caller owns the concurrency guarantee.
Prefer iterating or collecting LoadedEnvironment::values() when mutation is
not required.
This is the only workspace crate with an unsafe API. The core adotenv crate
forbids unsafe code. The crate supports Rust 1.81.