2016-03-28 23:42:39 +02:00
|
|
|
//! The data that we will serialize and deserialize.
|
|
|
|
|
2020-06-11 16:49:57 +02:00
|
|
|
use rustc_macros::{Decodable, Encodable};
|
2020-03-29 16:41:09 +02:00
|
|
|
use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
|
2016-05-06 21:09:31 +02:00
|
|
|
|
2020-06-11 16:49:57 +02:00
|
|
|
#[derive(Debug, Encodable, Decodable)]
|
2016-07-21 18:44:59 +02:00
|
|
|
pub struct SerializedWorkProduct {
|
|
|
|
/// node that produced the work-product
|
2017-06-06 15:09:21 +02:00
|
|
|
pub id: WorkProductId,
|
2016-07-21 18:44:59 +02:00
|
|
|
|
|
|
|
/// work-product data itself
|
|
|
|
pub work_product: WorkProduct,
|
|
|
|
}
|