Skip to content

Commit e8c78da

Browse files
committed
feat: add checksum to version types
1 parent 66e2b56 commit e8c78da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/types.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ pub struct Version {
407407
pub rust_version: Option<String>,
408408
#[serde(default)]
409409
pub audit_actions: Vec<AuditAction>,
410+
pub checksum: String
410411
}
411412

412413
/// A crate category.
@@ -623,6 +624,7 @@ pub struct FullVersion {
623624

624625
pub author_names: Vec<String>,
625626
pub dependencies: Vec<Dependency>,
627+
pub checksum: String
626628
}
627629

628630
impl FullVersion {
@@ -648,6 +650,7 @@ impl FullVersion {
648650

649651
author_names: authors.names,
650652
dependencies,
653+
checksum: version.checksum,
651654
}
652655
}
653656
}

0 commit comments

Comments
 (0)