File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ use std::collections::HashMap;
1717/// "name": "foo",
1818/// "versions": {
1919/// "0.1.2": {
20- /// "main": "./mod.ts"
20+ /// "yanked": true,
21+ /// "createdAt": "2025-09-17T15:37:51.191487057Z"
2122/// },
2223/// "0.1.3": {
23- /// "main ": "./mod.ts "
24+ /// "createdAt ": "2025-09-17T15:37:51.191487057Z "
2425/// },
2526/// }
2627/// }
@@ -57,6 +58,7 @@ impl PackageMetadata {
5758 version. version ,
5859 PackageMetadataVersion {
5960 yanked : version. is_yanked ,
61+ created_at : version. created_at ,
6062 } ,
6163 ) ;
6264 }
@@ -65,9 +67,11 @@ impl PackageMetadata {
6567}
6668
6769#[ derive( Serialize , Deserialize ) ]
70+ #[ serde( rename_all = "camelCase" ) ]
6871pub struct PackageMetadataVersion {
6972 #[ serde( skip_serializing_if = "is_false" , default ) ]
7073 pub yanked : bool ,
74+ pub created_at : chrono:: DateTime < chrono:: Utc > ,
7175}
7276
7377/// This struct stores information specific to a particular published version.
You can’t perform that action at this time.
0 commit comments