mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-22 07:32:16 -04:00
db34ff6a8e
* Create new crate `fs-utils`; move `Lockfile` and `create_parent_dir` The snapshot crate will need to create lockfiles. Rather than duplicating code to do so, we choose to move our definition of `Lockfile` into a crate that can be depended on by both `cli` and `snapshot`. No existing crate seems like an obvious choice for this -- a `Lockfile` is not really a data structure, so `data-structures` seems wrong -- so we add a new crate, `fs-utils`. Currently this contains only `Lockfile` and `create_parent_dir`, but a follow-up PR will add `DirTrie`, a Git-like on-disk object store. * Deduplicate `map_err` closure * Zeke's nit: simplify control flow Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com> Signed-off-by: Phoebe Goldman <phoebe@goldman-tribe.org> --------- Signed-off-by: Phoebe Goldman <phoebe@goldman-tribe.org> Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>