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

#14 in #var

Download history 97/week @ 2024-07-28 332/week @ 2024-08-04 266/week @ 2024-08-11 163/week @ 2024-08-18 65/week @ 2024-08-25 107/week @ 2024-09-01 55/week @ 2024-09-08 54/week @ 2024-09-15 70/week @ 2024-09-22 46/week @ 2024-09-29 10/week @ 2024-10-06 58/week @ 2024-10-13 92/week @ 2024-10-20 100/week @ 2024-10-27 91/week @ 2024-11-03 15/week @ 2024-11-10

299 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
~72K SLoC