ubi 0.9.0

The Universal Binary Installer library
Documentation
1
2
3
4
5
6
7
8
9
10
use std::sync::Once;

// Once https://github.com/d-e-s-o/test-log/issues/35 is fixed we can remove this code.
pub(crate) fn init_logging() {
    static INIT_LOGGING: Once = Once::new();
    INIT_LOGGING.call_once(|| {
        use env_logger;
        let _ = env_logger::builder().is_test(true).try_init();
    });
}