Skip to content

Commit

Permalink
Show how to display checksum in example
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 3, 2024
1 parent 28204a0 commit 0c6ecb2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libherokubuildpack/src/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@
//! // Verify checksum of the resolved artifact
//! let downloaded_data = "foo"; // Example downloaded file content
//! let downloaded_checksum = Sha256::digest(downloaded_data).to_vec();
//! assert_eq!(resolved_artifact.checksum.value, downloaded_checksum);
//!
//! assert_eq!(downloaded_checksum, resolved_artifact.checksum.value);
//! println!(
//! "Successfully downloaded {} with checksum {}",
//! resolved_artifact.url,
//! hex::encode(&resolved_artifact.checksum.value)
//! );
//! ```
pub mod artifact;
pub mod checksum;
Expand Down

0 comments on commit 0c6ecb2

Please sign in to comment.