genv

Crates.iogenv
lib.rsgenv
version0.1.15
sourcesrc
created_at2023-12-08 06:00:19.376805
updated_at2024-08-17 12:37:57.104959
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
size5,755
i18n.site (i18nsite)

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());
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Commit count: 22

cargo fmt