MCPcopy Create free account
hub / github.com/base/base / write_json

Function write_json

acceptance/src/aggregate.rs:471–474  ·  view source on GitHub ↗
(path: &Path, value: &impl Serialize)

Source from the content-addressed store, hash-verified

469 }
470
471 fn write_json(path: &Path, value: &impl Serialize) {
472 fs::create_dir_all(path.parent().expect("test path has parent")).unwrap();
473 fs::write(path, serde_json::to_vec(value).unwrap()).unwrap();
474 }
475
476 fn aggregate(
477 temp: &TempDir,

Calls 1

parentMethod · 0.45