rustc_incremental/lib.rs
1//! Support for serializing the dep-graph and reloading it.
2
3// tidy-alphabetical-start
4#![deny(missing_docs)]
5#![feature(file_buffered)]
6// tidy-alphabetical-end
7
8mod assert_dep_graph;
9mod errors;
10mod persist;
11
12pub use persist::{
13 copy_cgu_workproduct_to_incr_comp_cache_dir, finalize_session_directory, in_incr_comp_dir,
14 in_incr_comp_dir_sess, load_query_result_cache, save_work_product_index, setup_dep_graph,
15};
16use rustc_middle::util::Providers;
17
18#[allow(missing_docs)]
19pub fn provide(providers: &mut Providers) {
20 providers.hooks.save_dep_graph =
21 |tcx| tcx.sess.time("serialize_dep_graph", || persist::save_dep_graph(tcx));
22}