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

#13 in #var

Download history 197/week @ 2024-05-20 27/week @ 2024-05-27 46/week @ 2024-06-03 363/week @ 2024-06-10 40/week @ 2024-06-17 75/week @ 2024-06-24 61/week @ 2024-07-01 47/week @ 2024-07-08 156/week @ 2024-07-15 264/week @ 2024-07-22 37/week @ 2024-07-29 341/week @ 2024-08-05 327/week @ 2024-08-12 104/week @ 2024-08-19 80/week @ 2024-08-26 85/week @ 2024-09-02

605 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
~70K SLoC