oak-common is gone; its modules (configstore, xmlutils, ocioutils,
oiioutils, colormath, colortransform, videoparams, ffmpegutils, ...)
now live in oak-core alongside the value types. The render value/GPU
types moved too: backend (wgpu context + DisplayRenderer), color
(ColorProcessor over ocio-rs), texture, frame, and the commonutil
config helpers.
Fix-ups to make the merged tree build and pass tests:
- oak-core Cargo.toml: wgpu back to 25 (the moved backend code is
written against that API generation); add the toml/quick-xml/image
deps oak-common carried.
- lib.rs: drop the duplicate 'pub mod error;'.
- error.rs: unified OAKCORE_* codes; restore Error::new() and
From<OcioError> from oak-common's error type.
- backend.rs/color.rs: oak_core::/oak_render:: self-references
rewritten to crate::; the shaderfx-dependent GPU effect test moved
to oak-render's shaderfx tests (shaderfx depends on oak-node and
cannot live in oak-core).
- oak-render's error module re-exports oak_core::error::{Error,
Result}; the OAKRENDER_* codes stay as the public-code contract.
- oak-node jobs.rs: ColorProcessor imported from oak_core::color.
- Integration tests repointed at oak_core::{texture, frame, backend,
color, colormath}.
- the display-ICC regression test treats an empty OAK_DISPLAY_ICC as
unset, matching displayicc::env_override_icc.
43 lines
2.0 KiB
TOML
43 lines
2.0 KiB
TOML
[package]
|
|
name = "oak-storage"
|
|
version.workspace = true
|
|
edition = "2021"
|
|
description = "Oak Video Editor project persistence (Rust)"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lib]
|
|
crate-type = ["staticlib", "rlib"]
|
|
|
|
[dependencies]
|
|
oak-core = { path = "../oak-core" }
|
|
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).
|
|
oak-node = { path = "../oak-node" }
|
|
# Native OTIO JSON model (project-local; see src/bindings/oakotio).
|
|
oak-otio = { path = "../oak-otio" }
|
|
# 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"] }
|
|
# The write-through session manager (src/writethrough.rs) subscribes to
|
|
# the oakundo process-wide undo stack's command-success observers, so a
|
|
# recorded command immediately journals every bound project (M14 R1: the
|
|
# former facade-side binding/snapshot/flush logic, now module-owned).
|
|
oak-undo = { path = "../oak-undo" }
|
|
|
|
[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).
|