summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_incremental/src/persist/data.rs
blob: 81e5410978d5df55b4afa6da578d71ba429bb321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The data that we will serialize and deserialize.

use rustc_macros::{Decodable, Encodable};
use rustc_middle::dep_graph::{WorkProduct, WorkProductId};

#[derive(Debug, Encodable, Decodable)]
pub struct SerializedWorkProduct {
    /// node that produced the work-product
    pub id: WorkProductId,

    /// work-product data itself
    pub work_product: WorkProduct,
}