Files
SpacetimeDB/crates/fs-utils/Cargo.toml
Kim Altintop 05d4874918 Create db.lock file only for persistent databases (#3912)
This is the first step to make in-memory only databases not touch the
disk at all. Pending is an in-memory only sink for module logs.

Responsibility for the lock file is transferred to `Durability`, which
means that only persistent databases opened for writing acquire the
lock.

As a consequence, the `Durability` trait gains a `close` method that
prevents further writes and drains the internal buffers, even when
multiple `Arc`-pointers to the `Durability` exist.


# Expected complexity level and risk

2

# Testing

Covered by existing tests.
2026-01-08 08:22:37 +00:00

23 lines
480 B
TOML

[package]
name = "spacetimedb-fs-utils"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license-file = "LICENSE"
description = "Assorted utilities for filesystem operations used in SpacetimeDB"
[dependencies]
anyhow.workspace = true
fs2.workspace = true
hex.workspace = true
rand.workspace = true
thiserror.workspace = true
tokio.workspace = true
zstd-framed.workspace = true
[dev-dependencies]
tempdir.workspace = true
[lints]
workspace = true