Struct escargot::CargoBuild[][src]

pub struct CargoBuild { /* fields omitted */ }

The build subcommand.

Example

escargot::CargoBuild::new()
    .bin("bin_fixture")
    .current_release()
    .current_target()
    .exec()
    .unwrap();

Methods

impl CargoBuild
[src]

Shortcut to create a build subcommand.

See also Cargo.

Example

escargot::CargoBuild::new()
    .exec()
    .unwrap();

Build only name binary.

Example

escargot::CargoBuild::new()
    .bin("bin_fixture")
    .exec()
    .unwrap();

Build only name example.

Example

escargot::CargoBuild::new()
    .example("example_fixture")
    .exec()
    .unwrap();

Build artifacts in release mode, with optimizations.

Build artifacts in release mode if the current process has, with optimizations.

Build for the target triple.

Build for the current process' triple.

Manually pass an argument that is unsupported.

Caution: Passing in -- can throw off the API.

Build the configured target, returning compiler messages.

Provide a proxy for running the built target.

Example

let run = escargot::CargoBuild::new()
    .bin("bin_fixture")
    .current_release()
    .current_target()
    .run()
    .unwrap();
println!("artifact={}", run.path().display());

Trait Implementations

impl Default for CargoBuild
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for CargoBuild

impl !Sync for CargoBuild