- oakengine is now cdylib-only (no rlib/staticlib consumers anywhere; cargo tree verified) — the plugin/external C ABI layer; README and docs updated - cd.yml drops the dylib embedding/re-sign steps (the app no longer links it) - test race root-caused and fixed for good: the global undo stack lock is now a re-entrant mutex (parking_lot) shared by every test that drives the stack, including the previously unlocked node/render families; the render-manager serial-ordering bug (an earlier repro test initialized the global manager before the not-initialized test) is fixed with a shared SERIAL guard and a manager shutdown - 5 consecutive parallel runs clean; serial 209/209
71 lines
3.1 KiB
TOML
71 lines
3.1 KiB
TOML
[package]
|
|
name = "oakengine"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Oak Video Editor plugin/external-C-ABI layer: the frozen oakengine_* C ABI as a pure cdylib over the module crates' direct Rust APIs"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
# Pure cdylib (M14 R4): the only consumers are OFX plugins and external
|
|
# C-ABI embedders. No Rust crate depends on this crate, so no rlib/staticlib
|
|
# artifact is produced and it stays out of the workspace default-members.
|
|
[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 `oakcore_audioparams_*` accessors the audio paths read through are
|
|
# implemented inside the dylib too (src/stubs.rs, module `audio`, M12 P5):
|
|
# they used to be C++ liboakcore host-provided symbols left as runtime
|
|
# lookups, which blocked Windows DLL linking.
|
|
#
|
|
# 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]
|
|
parking_lot = "0.12"
|
|
# 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"] }
|