Struct cargo::core::compiler::Compilation [−][src]
A structure returning the result of a compilation.
Fields
tests: Vec<(Package, Target, PathBuf)>
An array of all tests created during this compilation.
(package, target, path_to_test_exe)
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: PathBuf
The path to rustc’s own libstd
target_dylib_path: 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
Implementations
impl<'cfg> Compilation<'cfg>
[src]
pub fn new<'a>(
bcx: &BuildContext<'a, 'cfg>,
default_kind: CompileKind
) -> CargoResult<Compilation<'cfg>>
[src]
bcx: &BuildContext<'a, 'cfg>,
default_kind: CompileKind
) -> CargoResult<Compilation<'cfg>>
pub fn rustc_process(
&self,
pkg: &Package,
target: &Target,
is_primary: bool
) -> CargoResult<ProcessBuilder>
[src]
&self,
pkg: &Package,
target: &Target,
is_primary: bool
) -> 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_runner(&self) -> &Option<(PathBuf, Vec<String>)>
[src]
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> !RefUnwindSafe for Compilation<'cfg>
impl<'cfg> !Send for Compilation<'cfg>
impl<'cfg> !Sync for Compilation<'cfg>
impl<'cfg> Unpin for Compilation<'cfg>
impl<'cfg> !UnwindSafe for Compilation<'cfg>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,