- facade storage session manager: project handles bind to the default SQLite library on project_new/load; every undo push/group_end/jump write-throughs via DatabaseBackend::save (diff journal); project_free flushes and unbinds - background snapshot thread (Storage/SnapshotIntervalSec, latest-wins, newest 3 kept) with exit flush (oakengine_storage_flush) - config-gated: storage only activates with an explicit Storage/Backend=sqlite, so headless consumers and tests never touch the real library; new exports: storage_flush/is_bound/last_error - it_storage: kill -9 recovery, cross-session undo, snapshot pruning, multi-project isolation, graceful degradation - also fixes a real config test polluting the user config.ini and the undo-stack test races
66 lines
2.8 KiB
TOML
66 lines
2.8 KiB
TOML
[package]
|
|
name = "oakengine"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Oak Video Editor facade: re-exports the frozen oakengine_* C ABI over the module Rust APIs (Rust)"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
# Error derive (Display + std::error::Error) for the crate error enum
|
|
# (src/error.rs). Same major version the other modules use (oakotio, ...).
|
|
thiserror = "2"
|
|
|
|
# Worker/IPC wire protocol (src/worker.rs, src/ipc.rs): serde for the
|
|
# NDJSON control-plane messages and serde_json for the wire encoding.
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
# POSIX shm_open/ftruncate/mmap/munmap/shm_unlink for the shared-memory
|
|
# frame-slot transport (src/ipc.rs).
|
|
libc = "0.2"
|
|
|
|
# Single-lib unification: every module call is a compile-time Rust call
|
|
# into the module crate's direct API (no module C ABI). The engine keeps
|
|
# the frozen oakengine_* C ABI upward; downward it rewires through
|
|
# src/stubs.rs (direct Rust shims for oakcommon/oakcodec/oakrender/
|
|
# oakaudio/oakplugin, and clearly marked STUBs for the handle-based
|
|
# oaknode/oaktimeline paths).
|
|
#
|
|
# The remaining undefined imports are the C++ host-provided symbols
|
|
# (`oakcore_audioparams_*` from liboakcore), which build.rs leaves as
|
|
# runtime lookups for the host app (see src/stubs.rs audio module).
|
|
#
|
|
# src/linkage.rs anchors every crate (and oakcore-rs) so the linker pulls
|
|
# their object files into the cdylib.
|
|
oakcore-rs = { path = "../oakcore" }
|
|
oakundo = { path = "../oakundo" }
|
|
oakcommon = { path = "../oakcommon" }
|
|
oaktimeline = { path = "../oaktimeline" }
|
|
oakcodec = { path = "../oakcodec" }
|
|
oakrender = { path = "../oakrender" }
|
|
oaktask = { path = "../oaktask" }
|
|
oaknode = { path = "../oaknode" }
|
|
oakaudio = { path = "../oakaudio" }
|
|
oakplugin = { path = "../oakplugin" }
|
|
# Live write-through to the project library (plan M13 D2): the facade's
|
|
# storage session manager (src/storage.rs) drives the oakstorage database
|
|
# backend (DatabaseBackend::save/snapshot) straight from the undo path.
|
|
oakstorage = { path = "../oakstorage" }
|
|
|
|
[dev-dependencies]
|
|
# The facade is cdylib-only, so the former tests/*.rs integration tests
|
|
# now run as unit tests inside the crate (src/test_support/, pulled in
|
|
# from src/lib.rs); the module crates are reachable through the normal
|
|
# [dependencies] above. oakcommon stays here for the direct dev-only
|
|
# imports in the test support files.
|
|
oakcommon = { path = "../oakcommon" }
|
|
# The write-through tests (src/test_support/it_storage.rs) inspect the
|
|
# journal/snapshot rows of the temp libraries directly; sea-orm + tokio
|
|
# unify with oakstorage's own versions (same features), so the entities
|
|
# and the current-thread runtime pattern match the oakstorage tests.
|
|
sea-orm = { version = "2", features = ["sqlx-postgres", "sqlx-sqlite", "runtime-tokio"] }
|
|
tokio = { version = "1", features = ["rt", "macros"] }
|