This crate provides an easy to define flags by environment variables. It is a rust counterpart of https://github.com/TimeExceed/envflag.
```rust use rs_envflag::*;
definei64flag!(I64FLAG, "an example about i64 flag"); definei64flag!( I64FLAGWDEFAULT, "an example about i64 flag with default", 42 );
fn main() { if let Some(x) = I64FLAG.get() { println!("{}", x); } else { println!("not present."); } println!("{}", I64FLAGWDEFAULT.get()); } ```
One can find more examples in examples/
.