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.
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.
11 //! Support for serializing the dep-graph and reloading it.
13 #![crate_name = "rustc_incremental"]
14 #![unstable(feature = "rustc_private", issue = "27812")]
15 #![crate_type = "dylib"]
16 #![crate_type = "rlib"]
17 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
18 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
19 html_root_url = "https://doc.rust-lang.org/nightly/")]
22 #![feature(rustc_private)]
23 #![feature(staged_api)]
25 #![feature(core_intrinsics)]
27 extern crate graphviz;
28 #[macro_use] extern crate rustc;
29 extern crate rustc_data_structures;
30 extern crate serialize as rustc_serialize;
32 #[macro_use] extern crate log;
33 #[macro_use] extern crate syntax;
34 extern crate syntax_pos;
36 extern crate rustc_i128;
38 const ATTR_DIRTY: &'static str = "rustc_dirty";
39 const ATTR_CLEAN: &'static str = "rustc_clean";
40 const ATTR_DIRTY_METADATA: &'static str = "rustc_metadata_dirty";
41 const ATTR_CLEAN_METADATA: &'static str = "rustc_metadata_clean";
42 const ATTR_IF_THIS_CHANGED: &'static str = "rustc_if_this_changed";
43 const ATTR_THEN_THIS_WOULD_NEED: &'static str = "rustc_then_this_would_need";
50 pub use assert_dep_graph::assert_dep_graph;
51 pub use calculate_svh::compute_incremental_hashes_map;
52 pub use calculate_svh::IncrementalHashesMap;
53 pub use calculate_svh::IchHasher;
54 pub use persist::load_dep_graph;
55 pub use persist::save_dep_graph;
56 pub use persist::save_trans_partition;
57 pub use persist::save_work_products;
58 pub use persist::in_incr_comp_dir;
59 pub use persist::finalize_session_directory;