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 LoadResult, copy_cgu_workproduct_to_incr_comp_cache_dir, finalize_session_directory,
14 in_incr_comp_dir, in_incr_comp_dir_sess, load_query_result_cache, save_work_product_index,
15 setup_dep_graph,
16};
17use rustc_middle::util::Providers;
18
19#[allow(missing_docs)]
20pub fn provide(providers: &mut Providers) {
21 providers.hooks.save_dep_graph =
22 |tcx| tcx.sess.time("serialize_dep_graph", || persist::save_dep_graph(tcx));
23}
24
25rustc_fluent_macro::fluent_messages! { "../messages.ftl" }