zen_engine/
config.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use once_cell::sync::Lazy;
use std::sync::atomic::AtomicBool;

#[derive(Debug)]
pub struct ZenConfig {
    pub nodes_in_context: AtomicBool,
}

impl Default for ZenConfig {
    fn default() -> Self {
        Self {
            nodes_in_context: AtomicBool::new(true),
        }
    }
}

pub static ZEN_CONFIG: Lazy<ZenConfig> = Lazy::new(|| Default::default());