[−][src]Struct escargot::CargoBuild
The build subcommand.
Example
escargot::CargoBuild::new() .bin("bin_fixture") .current_release() .current_target() .exec() .unwrap();
Methods
impl CargoBuild[src]
impl CargoBuildpub fn new() -> Self[src]
pub fn new() -> SelfShortcut to create a build subcommand.
See also Cargo.
Example
escargot::CargoBuild::new() .exec() .unwrap();
pub fn package<S: AsRef<OsStr>>(self, name: S) -> Self[src]
pub fn package<S: AsRef<OsStr>>(self, name: S) -> SelfBuild from name package in workspaces.
Example
escargot::CargoBuild::new() .package("escargot") .bin("bin_fixture") .exec() .unwrap();
pub fn bin<S: AsRef<OsStr>>(self, name: S) -> Self[src]
pub fn bin<S: AsRef<OsStr>>(self, name: S) -> Selfpub fn example<S: AsRef<OsStr>>(self, name: S) -> Self[src]
pub fn example<S: AsRef<OsStr>>(self, name: S) -> SelfBuild only name example.
Example
escargot::CargoBuild::new() .example("example_fixture") .exec() .unwrap();
pub fn manifest_path<S: AsRef<OsStr>>(self, path: S) -> Self[src]
pub fn manifest_path<S: AsRef<OsStr>>(self, path: S) -> SelfPath to Cargo.toml
pub fn release(self) -> Self[src]
pub fn release(self) -> SelfBuild artifacts in release mode, with optimizations.
pub fn current_release(self) -> Self[src]
pub fn current_release(self) -> SelfBuild artifacts in release mode if the current process has, with optimizations.
pub fn target<S: AsRef<OsStr>>(self, triplet: S) -> Self[src]
pub fn target<S: AsRef<OsStr>>(self, triplet: S) -> SelfBuild for the target triplet.
pub fn current_target(self) -> Self[src]
pub fn current_target(self) -> SelfBuild for the current process' triplet.
pub fn target_dir<S: AsRef<OsStr>>(self, dir: S) -> Self[src]
pub fn target_dir<S: AsRef<OsStr>>(self, dir: S) -> SelfDirectory for all generated artifacts
pub fn all_features(self) -> Self[src]
pub fn all_features(self) -> SelfActivate all available features
pub fn no_default_features(self) -> Self[src]
pub fn no_default_features(self) -> SelfDo not activate the default feature
pub fn features<S: AsRef<OsStr>>(self, features: S) -> Self[src]
pub fn features<S: AsRef<OsStr>>(self, features: S) -> SelfSpace-separated list of features to activate
pub fn arg<S: AsRef<OsStr>>(self, arg: S) -> Self[src]
pub fn arg<S: AsRef<OsStr>>(self, arg: S) -> SelfManually pass an argument that is unsupported.
Caution: Passing in -- can throw off the API.
pub fn exec(self) -> CargoResult<MessageIter>[src]
pub fn exec(self) -> CargoResult<MessageIter>Build the configured target, returning compiler messages.
pub fn run(self) -> CargoResult<CargoRun>[src]
pub fn run(self) -> CargoResult<CargoRun>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]
impl Default for CargoBuildAuto Trait Implementations
impl Send for CargoBuild
impl Send for CargoBuildimpl !Sync for CargoBuild
impl !Sync for CargoBuildBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId