Skip to main content

worldinterface_flowspec/
config.rs

1//! Compiler configuration.
2
3/// Configuration for the FlowSpec compiler.
4#[derive(Debug, Clone)]
5pub struct CompilerConfig {
6    /// Default timeout for Step tasks (seconds). None = no timeout.
7    pub default_step_timeout_secs: Option<u64>,
8    /// Maximum attempts for Step tasks before terminal failure.
9    pub default_step_max_attempts: u32,
10    /// Timeout for the Coordinator task (seconds). None = no timeout.
11    pub coordinator_timeout_secs: Option<u64>,
12}
13
14impl Default for CompilerConfig {
15    fn default() -> Self {
16        Self {
17            default_step_timeout_secs: Some(300),
18            default_step_max_attempts: 3,
19            coordinator_timeout_secs: None,
20        }
21    }
22}