mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-07-25 03:22:43 -04:00
2ddcc0a1e7
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
27 lines
612 B
TOML
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
|