rust/compiler/rustc_incremental/src/lib.rs

30 lines
934 B
Rust
Raw Normal View History

//! Support for serializing the dep-graph and reloading it.
2020-09-23 19:51:56 +00:00
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
#![feature(in_band_lifetimes)]
#![feature(nll)]
2019-12-22 22:42:04 +00:00
#![recursion_limit = "256"]
2019-12-22 22:42:04 +00:00
#[macro_use]
2020-03-29 13:24:45 +00:00
extern crate rustc_middle;
2019-12-22 22:42:04 +00:00
#[macro_use]
2020-08-14 06:05:01 +00:00
extern crate tracing;
mod assert_dep_graph;
pub mod assert_module_sources;
mod persist;
2021-03-02 21:38:49 +00:00
use assert_dep_graph::assert_dep_graph;
pub use persist::copy_cgu_workproduct_to_incr_comp_cache_dir;
2019-12-22 22:42:04 +00:00
pub use persist::delete_workproduct_files;
pub use persist::finalize_session_directory;
pub use persist::garbage_collect_session_directories;
pub use persist::in_incr_comp_dir;
pub use persist::in_incr_comp_dir_sess;
2019-12-22 22:42:04 +00:00
pub use persist::load_query_result_cache;
pub use persist::prepare_session_directory;
2019-12-22 22:42:04 +00:00
pub use persist::save_dep_graph;
pub use persist::save_work_product_index;
pub use persist::LoadResult;
2021-03-02 21:38:49 +00:00
pub use persist::{build_dep_graph, load_dep_graph, DepGraphFuture};