pub struct CliConfig {Show 13 fields
pub input_path: Option<PathBuf>,
pub emit_rust_path: Option<PathBuf>,
pub emit_wat_path: Option<PathBuf>,
pub emit_wasm_path: Option<PathBuf>,
pub run: bool,
pub dump_ast: bool,
pub dump_hir: bool,
pub dump_tokens: bool,
pub dump_pass_timings: bool,
pub dump_pass_snapshots: bool,
pub dump_pass_snapshots_json: bool,
pub show_help: bool,
pub show_version: bool,
}Expand description
Parsed CLI configuration for one compiler invocation.
Fields§
§input_path: Option<PathBuf>Input source file path.
emit_rust_path: Option<PathBuf>Output path for emitted Rust source.
emit_wat_path: Option<PathBuf>Output path for emitted WAT text.
emit_wasm_path: Option<PathBuf>Output path for emitted WASM bytes.
run: boolWhether to compile and run generated Rust.
dump_ast: boolWhether to print the parsed AST.
dump_hir: boolWhether to print lowered HIR.
dump_tokens: boolWhether to print lexer tokens.
dump_pass_timings: boolWhether to print pass timing output.
dump_pass_snapshots: boolWhether to print pass snapshot output.
dump_pass_snapshots_json: boolWhether to print pass snapshot output as JSON lines.
show_help: boolWhether to print CLI help text.
show_version: boolWhether to print CLI version text.
Trait Implementations§
impl Eq for CliConfig
impl StructuralPartialEq for CliConfig
Auto Trait Implementations§
impl Freeze for CliConfig
impl RefUnwindSafe for CliConfig
impl Send for CliConfig
impl Sync for CliConfig
impl Unpin for CliConfig
impl UnwindSafe for CliConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more