MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / sha256_bytes

Function sha256_bytes

xtask/src/main.rs:9516–9520  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

9514}
9515
9516fn sha256_bytes(bytes: &[u8]) -> String {
9517 let mut hasher = Sha256::new();
9518 hasher.update(bytes);
9519 format!("{:x}", hasher.finalize())
9520}
9521
9522fn read_wasm_link_metadata(path: &Path) -> Result<WasmLinkMetadataOut> {
9523 let bytes = fs::read(path).with_context(|| format!("read {}", path.display()))?;

Callers 7

asset_input_fingerprintFunction · 0.85
package_aot_artifactsFunction · 0.85
source_pins_sha256Function · 0.85
sha256_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected