#module #env #value #safenv

safenv

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

1 unstable release

0.1.0 Jun 19, 2024

#257 in #env

MIT/Apache

14KB
167 lines

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()));

safenv

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

Dependencies

~0–4.5MB