env 1.0.1

std::env::{set_var, remove_var} safely
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented2 out of 2 items with examples
  • Size
  • Source code size: 5.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.45 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • bend-n/env
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bend-n

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.