@@ -29,6 +29,7 @@ struct Inner {
2929 checksum : Option < String > ,
3030 links : Option < InternedString > ,
3131 rust_version : Option < RustVersion > ,
32+ pubtime : Option < jiff:: Timestamp > ,
3233}
3334
3435/// Indicates the dependency inferred from the `dep` syntax that should exist,
@@ -90,6 +91,7 @@ impl Summary {
9091 checksum : None ,
9192 links : links. map ( |l| l. into ( ) ) ,
9293 rust_version,
94+ pubtime : None ,
9395 } ) ,
9496 } )
9597 }
@@ -124,6 +126,10 @@ impl Summary {
124126 self . inner . rust_version . as_ref ( )
125127 }
126128
129+ pub fn pubtime ( & self ) -> Option < jiff:: Timestamp > {
130+ self . inner . pubtime
131+ }
132+
127133 pub fn override_id ( mut self , id : PackageId ) -> Summary {
128134 Arc :: make_mut ( & mut self . inner ) . package_id = id;
129135 self
@@ -133,6 +139,10 @@ impl Summary {
133139 Arc :: make_mut ( & mut self . inner ) . checksum = Some ( cksum) ;
134140 }
135141
142+ pub fn set_pubtime ( & mut self , pubtime : jiff:: Timestamp ) {
143+ Arc :: make_mut ( & mut self . inner ) . pubtime = Some ( pubtime) ;
144+ }
145+
136146 pub fn map_dependencies < F > ( self , mut f : F ) -> Summary
137147 where
138148 F : FnMut ( Dependency ) -> Dependency ,
0 commit comments