[−][src]Struct cargo::core::compiler::Compilation
A structure returning the result of a compilation.
Fields
tests: Vec<(Package, TargetKind, String, PathBuf)>
An array of all tests created during this compilation.
binaries: Vec<PathBuf>
An array of all binaries created.
native_dirs: BTreeSet<PathBuf>
All directories for the output of native build commands.
This is currently used to drive some entries which are added to the LD_LIBRARY_PATH as appropriate.
The order should be deterministic.
root_output: PathBuf
Root output directory (for the local package's artifacts)
deps_output: PathBuf
Output directory for rust dependencies. May be for the host or for a specific target.
host_deps_output: PathBuf
Output directory for the rust host dependencies.
host_dylib_path: Option<PathBuf>
The path to rustc's own libstd
target_dylib_path: Option<PathBuf>
The path to libstd for the target
extra_env: HashMap<PackageId, Vec<(String, String)>>
Extra environment variables that were passed to compilations and should be passed to future invocations of programs.
to_doc_test: Vec<Doctest>
Libraries to test with rustdoc.
cfgs: HashMap<PackageId, HashSet<String>>
Features per package enabled during this compilation.
rustdocflags: HashMap<PackageId, Vec<String>>
Flags to pass to rustdoc when invoked from cargo test, per package.
host: String
target: String
Methods
impl<'cfg> Compilation<'cfg>
[src]
pub fn new<'a>(bcx: &BuildContext<'a, 'cfg>) -> CargoResult<Compilation<'cfg>>
[src]
pub fn rustc_process(
&self,
pkg: &Package,
target: &Target
) -> CargoResult<ProcessBuilder>
[src]
&self,
pkg: &Package,
target: &Target
) -> CargoResult<ProcessBuilder>
See process
.
pub fn rustdoc_process(
&self,
pkg: &Package,
target: &Target
) -> CargoResult<ProcessBuilder>
[src]
&self,
pkg: &Package,
target: &Target
) -> CargoResult<ProcessBuilder>
See process
.
pub fn host_process<T: AsRef<OsStr>>(
&self,
cmd: T,
pkg: &Package
) -> CargoResult<ProcessBuilder>
[src]
&self,
cmd: T,
pkg: &Package
) -> CargoResult<ProcessBuilder>
See process
.
pub fn target_process<T: AsRef<OsStr>>(
&self,
cmd: T,
pkg: &Package
) -> CargoResult<ProcessBuilder>
[src]
&self,
cmd: T,
pkg: &Package
) -> CargoResult<ProcessBuilder>
See process
.
Auto Trait Implementations
impl<'cfg> !Send for Compilation<'cfg>
impl<'cfg> !Sync for Compilation<'cfg>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self