Struct cargo::core::compiler::TargetInfo [−][src]
pub struct TargetInfo { pub sysroot: PathBuf, pub sysroot_host_libdir: PathBuf, pub sysroot_target_libdir: PathBuf, pub rustflags: Vec<String>, pub rustdocflags: Vec<String>, pub supports_split_debuginfo: bool, // some fields omitted }
Expand description
Information about the platform target gleaned from querying rustc.
RustcTargetData
keeps two of these, one for the host and one for the
target. If no target is specified, it uses a clone from the host.
Fields
sysroot: PathBuf
Path to the sysroot.
sysroot_host_libdir: PathBuf
Path to the “lib” or “bin” directory that rustc uses for its dynamic libraries.
sysroot_target_libdir: PathBuf
Path to the “lib” directory in the sysroot which rustc uses for linking target libraries.
rustflags: Vec<String>
Extra flags to pass to rustc
, see env_args
.
rustdocflags: Vec<String>
Extra flags to pass to rustdoc
, see env_args
.
supports_split_debuginfo: bool
Whether or not rustc supports the -Csplit-debuginfo
flag.
Implementations
pub fn new(
config: &Config,
requested_kinds: &[CompileKind],
rustc: &Rustc,
kind: CompileKind
) -> CargoResult<TargetInfo>
[src]pub fn rustc_outputs(
&self,
mode: CompileMode,
target_kind: &TargetKind,
target_triple: &str
) -> CargoResult<(Vec<FileType>, Vec<CrateType>)>
[src]
pub fn rustc_outputs(
&self,
mode: CompileMode,
target_kind: &TargetKind,
target_triple: &str
) -> CargoResult<(Vec<FileType>, Vec<CrateType>)>
[src]Returns all the file types generated by rustc for the given mode/target_kind.
The first value is a Vec of file types generated, the second value is a list of CrateTypes that are not supported by the given target.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TargetInfo
impl Send for TargetInfo
impl !Sync for TargetInfo
impl Unpin for TargetInfo
impl UnwindSafe for TargetInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V