[][src]Struct escargot::CargoBuild

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 from name package in workspaces.

Example

escargot::CargoBuild::new()
    .package("escargot")
    .bin("bin_fixture")
    .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();

Path to Cargo.toml

Build artifacts in release mode, with optimizations.

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

Build for the target triplet.

Build for the current process' triplet.

Directory for all generated artifacts

Activate all available features

Do not activate the default feature

Space-separated list of features to activate

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]

Auto Trait Implementations

impl Send for CargoBuild

impl !Sync for CargoBuild

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]