MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / default_profile_project_id

Function default_profile_project_id

src/storage.rs:185–193  ·  view source on GitHub ↗
(project_root: &Path)

Source from the content-addressed store, hash-verified

183}
184
185pub fn default_profile_project_id(project_root: &Path) -> String {
186 let canonical = project_root
187 .canonicalize()
188 .unwrap_or_else(|_| project_root.to_path_buf());
189 let mut hasher = Sha256::new();
190 hasher.update(canonical.to_string_lossy().as_bytes());
191 let digest = hex::encode(hasher.finalize());
192 format!("proj_{}", &digest[..16])
193}
194
195pub fn default_profile_sharded_layout(
196 project_root: &Path,

Calls

no outgoing calls