genv

Crates.iogenv
lib.rsgenv
version0.1.10
sourcesrc
created_at2023-12-08 06:00:19.376805
updated_at2024-06-13 10:14:52.839906
descriptionglobal static var from environment
homepagehttps://github.com/i18n-site/rust/tree/main/genv
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1061605
size4,124
(3tieto)

documentation

README

genv

global static var from environment

genv::s!(TEST1);
genv::s!(TEST2: String);
genv::s!(TEST3: String, TEST4);
genv::def!(TEST5);
genv::def!(TEST6:u64 | 8080);

#[test]
fn test() {
  println!("{}", *TEST1);
  // let test1: u32 = TEST2();
  // println!("{}", TEST3());
}
Commit count: 3

cargo fmt