globenv

Crates.ioglobenv
lib.rsglobenv
version0.2.1
sourcesrc
created_at2023-10-16 12:14:56.988135
updated_at2023-11-22 17:12:37.517346
descriptionGlobally set & read environment variables and paths on Windows, macOS or Linux
homepage
repositoryhttps://github.com/DervexHero/globenv
max_upload_size
id1004711
size24,276
Dervex (DervexDev)

documentation

README

globenv

Globally set & read environment variables and paths (not just for the current process) on Windows, macOS or Linux

Version badge Downloads badge License badge

Example:

use globenv::*;

// Get environment variable
get_var("key").unwrap().unwrap();
// Set environment variable
set_var("key", "value").unwrap();
// Remove environment variable
remove_var("key").unwrap();

// Get all environment paths
get_paths().unwrap();
// Set environment path
set_path("example/path").unwrap();
// Remove environment path
remove_path("example/path").unwrap();

Credit:

Based on the globalenv by @nicolasbauw

Commit count: 14

cargo fmt