sdl_parser/constants.rs
1use lazy_static::lazy_static;
2use regex::Regex;
3
4pub const MINIMUM_NODE_COUNT: i32 = 1;
5pub const DEFAULT_NODE_COUNT: i32 = 1;
6pub const fn default_node_count() -> i32 {
7 DEFAULT_NODE_COUNT
8}
9
10pub const MAX_LONG_NAME: usize = 35;
11
12lazy_static! {
13 pub static ref CWE_REGEX: Regex = Regex::new(r"CWE-\d+").unwrap();
14}
15
16pub const DEFAULT_SPEED_VALUE: f64 = 1.0;
17pub const fn default_speed_value() -> f64 {
18 DEFAULT_SPEED_VALUE
19}