env 1.0.1

std::env::{set_var, remove_var} safely
Documentation

env

rust 2024

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.