modi_macros 0.1.0

Code generation for the modi dependency injection framework
Documentation
1
2
3
4
5
6
7
8
9
use crate::consts;
use std::env;

pub fn get_debug_level() -> usize {
    env::var(consts::DEBUG_ENV_VAR)
        .ok()
        .and_then(|value| value.parse().ok())
        .unwrap_or(0)
}