pub struct ExtensibleOptions<E: Extension> {
pub cargo_flags: Vec<String>,
pub command: Command<E>,
pub force_cargo_build: ForceCargoBuild,
pub deps: bool,
pub haxmeta: Option<PathBuf>,
pub no_custom_target_directory: bool,
pub message_format: MessageFormat,
pub extension: E::Options,
}Fields§
§cargo_flags: Vec<String>Semi-colon terminated list of arguments to pass to the
cargo build invocation. For example, to apply this
program on a package foo, use -C -p foo ;. (make sure
to escape ; correctly in your shell)
command: Command<E>§force_cargo_build: ForceCargoBuildcargo caching is enable by default, this flag disables it.
deps: boolApply the command to every local package of the dependency closure. By
default, the command is only applied to the primary packages (i.e. the
package(s) of the current directory, or the ones selected with cargo
options like -C -p <PKG> ;).
haxmeta: Option<PathBuf>Provide a precomputed haxmeta file explicitly. Setting this option bypasses rustc and the exporter altogether.
no_custom_target_directory: boolBy default, hax uses $CARGO_TARGET_DIR/hax as target folder,
to avoid recompilation when working both with cargo hax and
cargo build (or, e.g. rust-analyzer). This option disables
this behavior.
message_format: MessageFormatDiagnostic format. Sets cargo’s --message-format as well,
if not present.
extension: E::OptionsTrait Implementations§
Source§impl<E: Extension> Args for ExtensibleOptions<E>
impl<E: Extension> Args for ExtensibleOptions<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 ExtensibleOptions<E>
impl<E: Clone + Extension> Clone for ExtensibleOptions<E>
Source§fn clone(&self) -> ExtensibleOptions<E>
fn clone(&self) -> ExtensibleOptions<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 ExtensibleOptions<E>
impl<E: Extension> CommandFactory for ExtensibleOptions<E>
Source§impl<'de, E> Deserialize<'de> for ExtensibleOptions<E>
impl<'de, E> Deserialize<'de> for ExtensibleOptions<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 From<&ExtensibleOptions<()>> for ExporterOptions
impl From<&ExtensibleOptions<()>> for ExporterOptions
Source§impl<E: Extension> FromArgMatches for ExtensibleOptions<E>
impl<E: Extension> FromArgMatches for ExtensibleOptions<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 ExtensibleOptions<E>
impl<E: Extension + JsonSchema> JsonSchema for ExtensibleOptions<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 moreSource§impl<E: Extension> Parser for ExtensibleOptions<E>
impl<E: Extension> Parser for ExtensibleOptions<E>
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl<E> Freeze for ExtensibleOptions<E>
impl<E> RefUnwindSafe for ExtensibleOptions<E>where
<E as Extension>::Options: RefUnwindSafe,
<E as Extension>::Command: RefUnwindSafe,
<E as Extension>::BackendOptions: RefUnwindSafe,
<E as Extension>::FStarOptions: RefUnwindSafe,
impl<E> Send for ExtensibleOptions<E>
impl<E> Sync for ExtensibleOptions<E>
impl<E> Unpin for ExtensibleOptions<E>
impl<E> UnwindSafe for ExtensibleOptions<E>where
<E as Extension>::Options: UnwindSafe,
<E as Extension>::Command: UnwindSafe,
<E as Extension>::BackendOptions: UnwindSafe,
<E as Extension>::FStarOptions: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more