Files
oak-editor/crates/oakstorage/Cargo.toml
T
Mike-Solar 3dfeed67f5 feat(storage): database backend D1 — SQLite, node-granular journal, snapshots, persistent undo
- sea-orm schema: projects/settings/snapshots/journal (journal rows
  are per-node before/after images produced by diffing the serializer
  output, never full-project copies)
- replay = latest snapshot + journal; load_at() rewinds to any command
  seq (cross-session undo history); snapshot interval and journal
  retention configurable; snapshots pruned to the newest 3
- project manager API: list/delete/duplicate/rename, export/import
  (.ove/.otio/.fcpxml), stats derivation; PG surfaces as E_NO_BACKEND
  until D3
- docs(riir): M13 finalized (aggregate-granular persistence)
2026-08-16 01:38:27 +08:00

39 lines
1.7 KiB
TOML

[package]
name = "oakstorage"
version = "0.1.0"
edition = "2021"
description = "Oak Video Editor project persistence (Rust)"
license = "GPL-3.0-or-later"
[lib]
crate-type = ["staticlib", "rlib"]
[dependencies]
oakcore-rs = { path = "../oakcore" }
oakcommon = { path = "../oakcommon" }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
# Timestamp columns in the database schema (plan M13 §1: TIMESTAMP NOT
# NULL). sea-orm maps chrono NaiveDateTime via its default with-chrono
# feature; the direct dependency is needed for the entity field types.
chrono = "0.4"
# Error derive (Display + std::error::Error) for the crate error enum
# (src/error.rs). Same major version the other modules use (oakotio, ...).
thiserror = "2"
# The node graph engine: project + serializer families power the ove-xml
# backend; the sequence/track/block model powers the otio interchange
# (see src/bridge/node.rs — direct Rust calls, single-lib unification).
oaknode = { path = "../oaknode" }
# Native OTIO JSON model (project-local; see src/bindings/oakotio).
oakotio = { path = "../oakotio" }
# Database backends via SeaORM (sync facade: a private current-thread
# runtime drives the async API behind the synchronous C ABI; see
# backends/database.rs). sqlx-postgres + sqlx-sqlite cover PG/SQLite.
sea-orm = { version = "2", features = ["sqlx-postgres", "sqlx-sqlite", "runtime-tokio"] }
tokio = { version = "1", features = ["rt", "macros"] }
[dev-dependencies]
# oakcodec is also reachable through oaknode; the dev-dependency re-entry
# used to enable oakcodec's `test-stubs` host-mocks, which no longer exist
# (single-lib unification removed the oakcore_audioparams_* C ABI calls).