MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / atomic_write_json

Function atomic_write_json

crates/flowtrace-core/src/io.rs:30–33  ·  view source on GitHub ↗
(path: &Path, tmp_prefix: &str, value: &T)

Source from the content-addressed store, hash-verified

28}
29
30pub fn atomic_write_json<T: serde::Serialize>(path: &Path, tmp_prefix: &str, value: &T) -> Result<()> {
31 let bytes = serde_json::to_vec_pretty(value)?;
32 atomic_write_bytes(path, tmp_prefix, &bytes)
33}

Callers 3

cmd_initFunction · 0.85
write_traceFunction · 0.85
write_stateFunction · 0.85

Calls 1

atomic_write_bytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…