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.
17 lines
279 B
Rust
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,
|
|
}
|