xtask

Trait Xtask

Source
pub trait Xtask: Parser {
    // Required method
    fn run(self, ctx: XtaskCtx) -> Result<()>;
}
Expand description

Common trait implemented by all Xtask subcommands.

Required Methods§

Source

fn run(self, ctx: XtaskCtx) -> Result<()>

Run the Xtask.

For consistency and simplicity, Xtask implementations are allowed to assume that they are being run from the root of the repo’s filesystem. Callers of Xtask::run should take care to ensure std::env::set_current_dir was called prior to invoking Xtask::run.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§