std::env::set_var safely
-rw-r--r--
595
-rw-r--r--
372
-rw-r--r--
727
d---------
README.md
env
Provides a safe interface for std::env::{set_var, remove_var}.
Rationale
Since #124636, std::env::set_var and std::env::remove_var} have become unsafe, due to their being unsafe when in a multi-threaded unix context^1.
This crate wraps these functions, adding runtime checks to ensure thread safety on unix systems, making them safe again.