Skip to main content

Module utils

Module utils 

Source

Re-exportsยง

use std::path::PathBuf; ๐Ÿ”’
use std::sync::OnceLock; ๐Ÿ”’
use rustc_data_structures::profiling::VerboseTimingGuard; ๐Ÿ”’
use rustc_fs_util::try_canonicalize; ๐Ÿ”’
use rustc_macros::Decodable; ๐Ÿ”’
use rustc_macros::Encodable; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_structures::NativeLibKind; ๐Ÿ”’
use crate::session::Session; ๐Ÿ”’

Structsยง

CanonicalizedPath
A path that has been canonicalized along with its original, non-canonicalized form
NativeLib

Functionsยง

extra_compiler_flags
Gets a list of extra command-line flags provided by the user, as strings.
was_invoked_from_cargo
Returns whenever rustc was launched by Cargo as opposed to another build system.