#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

#611 in Configuration

Download history 23/week @ 2023-11-27 1/week @ 2023-12-04 1/week @ 2024-02-05 33/week @ 2024-02-19 34/week @ 2024-02-26 4/week @ 2024-03-04 10/week @ 2024-03-11

81 downloads per month
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