]> git.lizzy.rs Git - rust.git/blob - src/librustc_incremental/persist/data.rs
Rework `rustc_serialize`
[rust.git] / src / librustc_incremental / persist / data.rs
1 //! The data that we will serialize and deserialize.
2
3 use rustc_macros::{Decodable, Encodable};
4 use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
5
6 #[derive(Debug, Encodable, Decodable)]
7 pub struct SerializedWorkProduct {
8     /// node that produced the work-product
9     pub id: WorkProductId,
10
11     /// work-product data itself
12     pub work_product: WorkProduct,
13 }