Skip to main content

Task

Enum Task 

Source
pub(crate) enum Task {
    Check(CheckArgs),
    Test(TestArgs),
    TestWasm(TestWasmArgs),
    Miri(MiriArgs),
    RunWasm(RunWasmArgs),
    BuildAndroid(BuildAndroidArgs),
    Publish(PublishArgs),
    PrintGpu(PrintGpuArgs),
}
Expand description

The tasks cargo xtask offers.

argh derives each variant’s subcommand name from its payload struct, which must itself derive FromArgs and be declared as a subcommand.

Variants§

§

Check(CheckArgs)

Run the typo and TOML checks, then clippy and the doc build over the whole workspace, then check formatting.

§

Test(TestArgs)

Run the workspace’s tests.

§

TestWasm(TestWasmArgs)

Run the GPU tests in a real browser, through wasm and WebGL2.

§

Miri(MiriArgs)

Run the ECS’s tests under Miri, which is what checks its unsafe.

§

RunWasm(RunWasmArgs)

Build and serve the web examples.

§

BuildAndroid(BuildAndroidArgs)

Build the Android example’s shared library and the APK around it.

§

Publish(PublishArgs)

Publish the workspace’s crates to crates.io, in dependency order.

§

PrintGpu(PrintGpuArgs)

Print the GPU device the tests draw with, as JSON.

Trait Implementations§

Source§

impl FromArgs for Task

Source§

fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>

Construct the type from an input set of arguments. Read more
Source§

fn redact_arg_values( command_name: &[&str], args: &[&str], ) -> Result<Vec<String>, EarlyExit>

Get a String with just the argument names, e.g., options, flags, subcommands, etc, but without the values of the options and arguments. This can be useful as a means to capture anonymous usage statistics without revealing the content entered by the end user. Read more
Source§

impl SubCommands for Task

Source§

const COMMANDS: &'static [&'static CommandInfo]

Info for the commands.
§

fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]

Get a list of commands that are discovered at runtime.

Auto Trait Implementations§

§

impl Forget for Task

§

impl Freeze for Task

§

impl RefUnwindSafe for Task

§

impl Send for Task

§

impl Sync for Task

§

impl Unpin for Task

§

impl UnsafeUnpin for Task

§

impl UnwindSafe for Task

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.