flybrain/services/flysim/crates/flysim-store/Cargo.toml
acamilo 32631e2d02 flysim-store: the FLYSIM01 store and the sugar journal in one crate; journal boot header, rotation and reset clearing
store.rs and journal.rs move unchanged from flysim into the new flysim-store crate, which flysim
re-exports, so the session runtime can write and read the same store (STATE-02). The journal gains
a per-process boot header, rotation at 4 MiB with three kept files, and clear(), which
flysim --reset-to-milestone now calls after copying the stores aside.
2026-09-29 16:25:42 +00:00

27 lines
837 B
TOML

[package]
name = "flysim-store"
version.workspace = true
edition = "2024"
rust-version.workspace = true
license.workspace = true
publish = false
description = "The FLYSIM01 checkpoint store (envelope, generations, milestone archives) and the sugar journal, shared by flysim and the session runtime."
[lib]
name = "flysim_store"
path = "src/lib.rs"
# STATE-02: `flysim` (the legacy loop) and `fly-session` (the session runtime) write and read
# the same store, so the code lives here once and both link it. No dependency on either of
# them, and nothing async: the writer threads belong to the callers.
[dependencies]
flybrain-core = { path = "../flybrain-core" }
flybrain-gb = { path = "../flybrain-gb" }
anyhow = "1.0"
serde = { workspace = true }
serde_json = { workspace = true }
tracing = "0.1"
[dev-dependencies]
tempfile = "3"