compile_with_exec in cargo::ops::cargo_compile - Rust
Description: Like `compile` but allows specifying a custom `Executor` that will be able to intercept build calls and add custom logic.

Skip to main content

## compile_with_exec

# Function compile_with_exec

Source

    pub fn compile_with_exec<'a>(
        ws: &Workspace<'a>,
        options: &CompileOptions,
        exec: &Arc<dyn Executor>,
    ) -> CargoResult<Compilation<'a>>

Expand description

Like `compile` but allows specifying a custom `Executor` that will be able to intercept build calls and add custom logic.

`compile` uses `DefaultExecutor` which just passes calls through.