Skip to main content

Module rustc

Module rustc 

Source

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 rustc invocation builder.

Functionsยง

bare_rustc
Construct a plain rustc invocation with no flags set. Note that set_host_compiler_dylib_path still presets the environment variable HOST_RUSTC_DYLIB_PATH by default.
rustc
Construct a new rustc invocation. This will automatically set the library search path as -L cwd(). Use bare_rustc to avoid this.
rustc_minicore
Construct a rustc invocation for building minicore.
rustc_path
setup_common ๐Ÿ”’
stable_bare_rustc
Construct a plain rustc invocation with no flags set that behaves like a stable compiler, i.e. rejects unstable flags. Note that set_host_compiler_dylib_path still presets the environment variable HOST_RUSTC_DYLIB_PATH by default.
sysroot
Query the sysroot path corresponding rustc --print=sysroot.