#env-var #variables #environment #global

globalenv

Globally sets environment variables (and not just for the current process). Support for Windows, zsh and bash (MacOS and most Linux distros).

6 releases (3 breaking)

0.4.2 Nov 10, 2022
0.4.1 Aug 14, 2021
0.4.0 Jan 26, 2021
0.3.0 Aug 22, 2020
0.1.0 Aug 20, 2020

#571 in Configuration


Used in android-sdk-manager-rs

MIT license

11KB
174 lines

globalenv

Current Crates.io Version Downloads badge

Globally set or unset environment variables (and not just for the current process). Support for Windows, zsh and bash (MacOS and most Linux distros). Example:

use globalenv::{set_var, unset_var};
set_var("ENVTEST", "TESTVALUE").unwrap();
unset_var("ENVTEST").unwrap();

License: MIT


lib.rs:

Globally set or unset environment variables (and not just for the current process). Support for Windows, zsh and bash (MacOS and most Linux distros). Example:

use globalenv::{set_var, unset_var};
set_var("ENVTEST", "TESTVALUE").unwrap();
unset_var("ENVTEST").unwrap();

Dependencies

~190KB