]> git.proxmox.com Git - rustc.git/blob - src/librustc_incremental/lib.rs
New upstream version 1.27.1+dfsg1
[rustc.git] / src / librustc_incremental / lib.rs
1 // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 //! Support for serializing the dep-graph and reloading it.
12
13 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
14 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
15 html_root_url = "https://doc.rust-lang.org/nightly/")]
16
17 #![feature(fs_read_write)]
18 #![feature(specialization)]
19
20 extern crate graphviz;
21 #[macro_use] extern crate rustc;
22 extern crate rustc_data_structures;
23 extern crate serialize as rustc_serialize;
24 extern crate rand;
25
26 #[macro_use] extern crate log;
27 extern crate syntax;
28 extern crate syntax_pos;
29
30 mod assert_dep_graph;
31 pub mod assert_module_sources;
32 mod persist;
33
34 pub use assert_dep_graph::assert_dep_graph;
35 pub use persist::dep_graph_tcx_init;
36 pub use persist::load_dep_graph;
37 pub use persist::load_query_result_cache;
38 pub use persist::LoadResult;
39 pub use persist::save_dep_graph;
40 pub use persist::save_trans_partition;
41 pub use persist::save_work_products;
42 pub use persist::in_incr_comp_dir;
43 pub use persist::prepare_session_directory;
44 pub use persist::finalize_session_directory;
45 pub use persist::delete_workproduct_files;
46 pub use persist::garbage_collect_session_directories;