MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / source_key

Function source_key

atomic-core/src/pristine/merge.rs:352–358  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

350}
351
352fn source_key(path: &Path) -> PristineResult<String> {
353 let name = path
354 .file_name()
355 .and_then(|name| name.to_str())
356 .ok_or_else(|| merge_error("legacy source must have a UTF-8 filename".into()))?;
357 Ok(format!("legacy_source/{name}"))
358}
359
360fn fingerprint<'a>(tables: impl Iterator<Item = (&'a String, &'a TableDigest)>) -> [u8; 32] {
361 let mut digest = blake3::Hasher::new();

Callers 2

merge_intoMethod · 0.85
verify_unchangedMethod · 0.85

Calls 2

merge_errorFunction · 0.85
file_nameMethod · 0.45

Tested by

no test coverage detected