#env #key-value #thread-safe #module #var #set #wrapper

safenv

A thread-safe wrapper around the standard library’s env module

1 unstable release

0.1.0 Jun 19, 2024

#831 in Concurrency

MIT/Apache

14KB
167 lines

safenv

A thread-safe alternative to the std::env module


lib.rs:

A thread-safe alternative to the std::env module

Examples

use safenv as env;

let key = "KEY";
env::set_var(key, "VALUE");
assert_eq!(env::var(key), Ok("VALUE".to_string()));

Dependencies

~0–5MB