pub struct BackendOptions<E: Extension> {
pub backend: Backend<E>,
pub dry_run: bool,
pub verbose: u8,
pub stats: bool,
pub profile: bool,
pub debug_engine: Option<DebugEngineMode>,
pub extract_type_aliases: bool,
pub translation_options: TranslationOptions,
pub output_dir: Option<PathBuf>,
pub cli_extension: E::BackendOptions,
}Fields§
§backend: Backend<E>§dry_run: boolDon’t write anything on disk. Output everything as JSON to stdout instead.
verbose: u8Verbose mode for the Hax engine. Set -vv for maximal verbosity.
stats: boolPrints statistics about how many items have been translated successfully by the engine.
profile: boolEnables profiling for the engine: for each phase of the engine, time and memory usage are recorded and reported.
debug_engine: Option<DebugEngineMode>Enable engine debugging: dumps the AST at each phase.
The value of <DEBUG_ENGINE> can be either:
{n}{n} - interactive (or i): enables debugging of the engine,
and visualize interactively in a webapp how a crate was
transformed by each phase, both in Rust-like syntax and
browsing directly the internal AST. By default, the webapp is
hosted on http://localhost:8000, the port can be override by
setting the HAX_DEBUGGER_PORT environment variable.
{n} - <FILE> or file:<FILE>: outputs the different AST as JSON
to <FILE>. <FILE> can be either [-] or a path.
extract_type_aliases: boolExtract type aliases. This is disabled by default, since extracted terms depends on expanded types rather than on type aliases. Turning this option on is discouraged: Rust type synonyms can ommit generic bounds, which are ususally necessary in the hax backends, leading to typechecking errors. For more details see https://github.com/hacspec/hax/issues/708.
translation_options: TranslationOptions§output_dir: Option<PathBuf>Where to put the output files resulting from the translation.
Defaults to “
cli_extension: E::BackendOptionsTrait Implementations§
Source§impl<E: Extension> Args for BackendOptions<E>
impl<E: Extension> Args for BackendOptions<E>
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl<E: Clone + Extension> Clone for BackendOptions<E>where
E::BackendOptions: Clone,
impl<E: Clone + Extension> Clone for BackendOptions<E>where
E::BackendOptions: Clone,
Source§fn clone(&self) -> BackendOptions<E>
fn clone(&self) -> BackendOptions<E>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<E: Extension> CommandFactory for BackendOptions<E>
impl<E: Extension> CommandFactory for BackendOptions<E>
Source§impl<E: Debug + Extension> Debug for BackendOptions<E>where
E::BackendOptions: Debug,
impl<E: Debug + Extension> Debug for BackendOptions<E>where
E::BackendOptions: Debug,
Source§impl<'de, E> Deserialize<'de> for BackendOptions<E>
impl<'de, E> Deserialize<'de> for BackendOptions<E>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<E: Extension> FromArgMatches for BackendOptions<E>
impl<E: Extension> FromArgMatches for BackendOptions<E>
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl<E: Extension + JsonSchema> JsonSchema for BackendOptions<E>
impl<E: Extension + JsonSchema> JsonSchema for BackendOptions<E>
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more