Files
aiken/crates/aiken-project/src/options.rs
KtorZ d27ea98a8f Rework tracing arguments to --keep-traces & --trace-level
This allows for a more fine-grained control over how the traces are showed. Now users can instrument the compiler to preserve only their user-defined traces, or the only the compiler, or all, or none. We also want to add another trace level on top of that: 'compact' to only show line numbers; which will work for both user-defined and/or compiler-generated traces.
2024-01-19 14:30:15 +01:00

17 lines
279 B
Rust

use aiken_lang::ast::Tracing;
pub struct Options {
pub code_gen_mode: CodeGenMode,
pub tracing: Tracing,
}
pub enum CodeGenMode {
Test {
match_tests: Option<Vec<String>>,
verbose: bool,
exact_match: bool,
},
Build(bool),
NoOp,
}