mirror of
https://github.com/gorules/zen.git
synced 2026-11-29 00:07:37 +00:00
* 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
22 lines
556 B
Rust
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());
|