Crates.io | env |
lib.rs | env |
version | 1.0.1 |
source | src |
created_at | 2025-01-13 07:36:51.83822 |
updated_at | 2025-01-13 08:14:12.279087 |
description | std::env::{set_var, remove_var} safely |
homepage | |
repository | https://github.com/bend-n/env |
max_upload_size | |
id | 1514328 |
size | 4,993 |
env
Provides a safe interface for std::env::{set_var, remove_var}
.
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 context1.
This crate wraps these functions, adding runtime checks to ensure thread safety on unix systems, making them safe again.