TranspilerConfig

Struct TranspilerConfig 

Source
pub struct TranspilerConfig {
Show 36 fields pub dump_untyped_context: bool, pub dump_typed_context: bool, pub pretty_typed_context: bool, pub dump_function_cfgs: bool, pub json_function_cfgs: bool, pub dump_cfg_liveness: bool, pub dump_structures: bool, pub verbose: bool, pub debug_ast_exporter: bool, pub incremental_relooper: bool, pub fail_on_multiple: bool, pub filter: Option<Regex>, pub debug_relooper_labels: bool, pub prefix_function_names: Option<String>, pub translate_asm: bool, pub use_c_loop_info: bool, pub use_c_multiple_info: bool, pub simplify_structures: bool, pub panic_on_translator_failure: bool, pub emit_modules: bool, pub fail_on_error: bool, pub replace_unsupported_decls: ReplaceMode, pub translate_valist: bool, pub overwrite_existing: bool, pub reduce_type_annotations: bool, pub reorganize_definitions: bool, pub enabled_warnings: HashSet<Diagnostic>, pub emit_no_std: bool, pub output_dir: Option<PathBuf>, pub translate_const_macros: TranslateMacros, pub translate_fn_macros: TranslateMacros, pub disable_refactoring: bool, pub preserve_unused_functions: bool, pub log_level: LevelFilter, pub emit_build_files: bool, pub binaries: Vec<String>,
}
Expand description

Configuration settings for the translation process

Fields§

§dump_untyped_context: bool§dump_typed_context: bool§pretty_typed_context: bool§dump_function_cfgs: bool§json_function_cfgs: bool§dump_cfg_liveness: bool§dump_structures: bool§verbose: bool§debug_ast_exporter: bool§incremental_relooper: bool§fail_on_multiple: bool§filter: Option<Regex>§debug_relooper_labels: bool§prefix_function_names: Option<String>§translate_asm: bool§use_c_loop_info: bool§use_c_multiple_info: bool§simplify_structures: bool§panic_on_translator_failure: bool§emit_modules: bool§fail_on_error: bool§replace_unsupported_decls: ReplaceMode§translate_valist: bool§overwrite_existing: bool§reduce_type_annotations: bool§reorganize_definitions: bool§enabled_warnings: HashSet<Diagnostic>§emit_no_std: bool§output_dir: Option<PathBuf>§translate_const_macros: TranslateMacros§translate_fn_macros: TranslateMacros§disable_refactoring: bool§preserve_unused_functions: bool§log_level: LevelFilter§emit_build_files: bool

Emit Cargo.toml and lib.rs

§binaries: Vec<String>

Names of translation units containing main functions that we should make into binaries

Trait Implementations§

Source§

impl Debug for TranspilerConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Make<T> for T

Source§

fn make(self, _mk: &Builder) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.