13 releases

0.1.15 Aug 17, 2024
0.1.13 Aug 17, 2024
0.1.11 Jul 24, 2024
0.1.10 Jun 13, 2024
0.1.5 Dec 8, 2023

#15 in #var

Download history 28/week @ 2024-09-17 80/week @ 2024-09-24 34/week @ 2024-10-01 27/week @ 2024-10-08 52/week @ 2024-10-15 92/week @ 2024-10-22 105/week @ 2024-10-29 77/week @ 2024-11-05 13/week @ 2024-11-12 28/week @ 2024-11-19 68/week @ 2024-11-26 42/week @ 2024-12-03 71/week @ 2024-12-10 19/week @ 2024-12-17 3/week @ 2024-12-31

95 downloads per month
Used in 23 crates (17 directly)

MulanPSL-2.0

6KB
110 lines

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 ⋅ 国际化解决方案 的开源组件。

Dependencies

~3.5MB
~73K SLoC