Trait cargo::ops::Executor [] [src]

pub trait Executor: Send + Sync + 'static {
    fn init(&self, _cx: &Context) { ... }
    fn exec(&self, cmd: ProcessBuilder, _id: &PackageId) -> CargoResult<()> { ... }
    fn exec_json(
        &self,
        cmd: ProcessBuilder,
        _id: &PackageId,
        handle_stdout: &mut FnMut(&str) -> CargoResult<()>,
        handle_stderr: &mut FnMut(&str) -> CargoResult<()>
    ) -> CargoResult<()> { ... } }

A glorified callback for executing calls to rustc. Rather than calling rustc directly, we'll use an Executor, giving clients an opportunity to intercept the build calls.

Provided Methods

If execution succeeds, the ContinueBuild value indicates whether Cargo should continue with the build process for this package.

Implementors