strut-core 0.0.2

Core facades and utilities. Part of the Strut family.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(test)]
mod tests {
    use strut_core::AppProfile;

    #[test]
    fn dev() {
        // When
        unsafe { std::env::set_var("APP_PROFILE", "dev") }

        // Then
        assert!(matches!(AppProfile::active(), AppProfile::Dev));
    }
}