cairo_lang_filesystem/flag.rs
1/// A compilation flag.
2#[derive(PartialEq, Eq, Debug)]
3pub enum Flag {
4 /// Whether automatically add `withdraw_gas` calls in code cycles.
5 /// Default is true - automatically add.
6 ///
7 /// Additionally controls addition of `redeposit_gas` which happens on default.
8 AddWithdrawGas(bool),
9 NumericMatchOptimizationMinArmsThreshold(usize),
10 /// Whether to add panic backtrace handling to the generated code.
11 ///
12 /// Default is false - do not add, as it won't be used in production.
13 PanicBacktrace(bool),
14}