pub struct ExtensibleOptions<E: Extension> {
pub inline_macro_calls: Vec<Namespace>,
pub cargo_flags: Vec<String>,
pub command: Command<E>,
pub force_cargo_build: ForceCargoBuild,
pub deps: bool,
pub no_custom_target_directory: bool,
pub message_format: MessageFormat,
pub extension: E::Options,
}
Fields§
§inline_macro_calls: Vec<Namespace>
Replace the expansion of each macro matching PATTERN by their
invocation. PATTERN denotes a rust path (i.e. A::B::c
) in
which glob patterns are allowed. The glob pattern * matches
any name, the glob pattern ** matches zero, one or more
names. For instance, A::B::C::D::X
and A::E::F::D::Y
matches A::**::D::*
.
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: ForceCargoBuild
cargo
caching is enable by default, this flag disables it.
deps: bool
Apply 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> ;
).
no_custom_target_directory: bool
By 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: MessageFormat
Diagnostic format. Sets cargo
’s --message-format
as well,
if not present.
extension: E::Options
Trait 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<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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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