Files
zen/core/engine/src/config.rs
T
stefan-gorules 3a25f4f5c3 feat: engine version (#574)
* feat(engine): select the engine with a version option

* ci: run the two feature sets as parallel jobs

* refactor(engine): drop the global compiled switch

* feat(engine): pin the clock through options instead of the environment

The __ZEN_MOCK_UTC_TIME variable and the ZEN_EXPRESSION_CONFIG lane flag are
gone. Isolate takes with_now and with_lane, and the interpreted engine now
honours the now option in expressions, so tests pass the instant explicitly.

* test(engine): count trace paths per thread and drop the trace test lock

* ci: run tests with nextest

* test(engine): share golden trace outcomes between variants
2026-11-21 20:09:14 +01:00

22 lines
556 B
Rust

use once_cell::sync::Lazy;
use std::sync::atomic::{AtomicBool, AtomicU64};
#[derive(Debug)]
pub struct ZenConfig {
pub nodes_in_context: AtomicBool,
pub function_timeout_millis: AtomicU64,
pub http_auth: AtomicBool,
}
impl Default for ZenConfig {
fn default() -> Self {
Self {
nodes_in_context: AtomicBool::new(true),
function_timeout_millis: AtomicU64::new(5_000),
http_auth: AtomicBool::new(true),
}
}
}
pub static ZEN_CONFIG: Lazy<ZenConfig> = Lazy::new(|| Default::default());