Skip to main content

Module build_stamp

Module build_stamp 

Source
Expand description

Module for managing build stamp files.

Contains the core implementation of how bootstrap utilizes stamp files on build processes.

Re-exportsΒ§

use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use std::fs; πŸ”’
use std::io; πŸ”’
use sha2::digest::Digest; πŸ”’
use crate::core::backend::CodegenBackendKind; πŸ”’
use crate::core::builder::Builder; πŸ”’
use crate::core::compiler::Compiler; πŸ”’
use crate::core::config::TargetSelection; πŸ”’
use crate::core::session::Mode; πŸ”’
use crate::utils::helpers; πŸ”’
use crate::utils::helpers::hex_encode; πŸ”’
use crate::utils::helpers::mtime; πŸ”’
use crate::utils::helpers::t; πŸ”’

StructsΒ§

BuildStamp
Manages a stamp file to track build state. The file is created in the given directory and can have custom content and name.

FunctionsΒ§

clear_if_dirty
Clear out dir if input is newer.
codegen_backend_stamp
Cargo’s output path for librustc_codegen_llvm in a given stage, compiled by a particular compiler for the specified target and backend.
generate_smart_stamp_hash
Computes a hash representing the state of a repository/submodule and additional input.
librustc_stamp
Cargo’s output path for librustc in a given stage, compiled by a particular build_compiler for the specified target.
libstd_stamp
Cargo’s output path for the standard library in a given stage, compiled by a particular build_compiler for the specified target.