Files
SpacetimeDB/crates/paths/Cargo.toml
Kim Altintop 2ddcc0a1e7 paths: fsync after writing to a file (#4892)
As reported in #4886, `metadata.toml` can get get lost if the server
crashes at an unfortunate point in time. To mitigate that, make
`path_type::write` replace the file atomically, and issue `fsync` on the
file and enclosing directory.


# Expected complexity level and risk

1
2026-04-30 16:26:14 +00:00

27 lines
612 B
TOML

[package]
name = "spacetimedb-paths"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license-file = "LICENSE"
description = "The spacetimedb directory structure, represented as a type hierarchy"
[dependencies]
anyhow.workspace = true
chrono = { workspace = true, features = ["now"] }
fs2.workspace = true
itoa.workspace = true
serde.workspace = true
tempfile.workspace = true
thiserror.workspace = true
[target.'cfg(windows)'.dependencies]
dirs.workspace = true
junction.workspace = true
[target.'cfg(not(windows))'.dependencies]
xdg.workspace = true
[lints]
workspace = true