Crates.io | globalenv |
lib.rs | globalenv |
version | 0.4.2 |
source | src |
created_at | 2020-08-20 22:01:30.751571 |
updated_at | 2022-11-10 08:27:42.039457 |
description | Globally sets environment variables (and not just for the current process). Support for Windows, zsh and bash (MacOS and most Linux distros). |
homepage | |
repository | https://github.com/nicolasbauw/globalenv |
max_upload_size | |
id | 278932 |
size | 11,177 |
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