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
impl FromArgs for Task
Source§fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
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>
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
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> 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
Mutably borrows from an owned value. Read more