Re-exportsยง
use std::ffi::OsStr;๐use std::ffi::OsString;๐use std::path::Path;๐use std::path::PathBuf;๐use std::str::FromStr as _;๐use crate::command::Command;๐use crate::env::env_var;๐use crate::path_helpers::cwd;๐use crate::path_helpers::source_root;๐use crate::util::set_host_compiler_dylib_path;๐use crate::is_aix;๐use crate::is_darwin;๐use crate::is_windows;๐use crate::is_windows_msvc;๐use crate::target;๐use crate::uname;๐
Structsยง
- Rustc
- A
rustcinvocation builder.
Functionsยง
- bare_
rustc - Construct a plain
rustcinvocation with no flags set. Note thatset_host_compiler_dylib_pathstill presets the environment variableHOST_RUSTC_DYLIB_PATHby default. - rustc
- Construct a new
rustcinvocation. This will automatically set the library search path as-L cwd(). Usebare_rustcto avoid this. - rustc_
minicore - Construct a
rustcinvocation for buildingminicore. - rustc_
path - setup_
common ๐ - stable_
bare_ rustc - Construct a plain
rustcinvocation with no flags set that behaves like a stable compiler, i.e. rejects unstable flags. Note thatset_host_compiler_dylib_pathstill presets the environment variableHOST_RUSTC_DYLIB_PATHby default. - sysroot
- Query the sysroot path corresponding
rustc --print=sysroot.