cao_lang/compiler/
compile_options.rs

1#[derive(Debug, Clone)]
2#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
3pub struct CompileOptions {
4    /// How deep is the submodule tree allowed to grow?
5    pub recursion_limit: u32,
6}
7
8impl Default for CompileOptions {
9    fn default() -> Self {
10        Self::new()
11    }
12}
13
14impl CompileOptions {
15    pub fn new() -> Self {
16        Self {
17            recursion_limit: 64,
18        }
19    }
20}