const_env--value 0.1.2

Configure const and static items by environment variables.
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate const_env;

use const_env::value_from_env;


const SMOKE_U32: u32 = value_from_env!("SMOKE_U32": u32);

fn main() {
    assert_eq!(321, SMOKE_U32);
}