Single-lib cleanup: the per-crate src/bridge/ and src/ffi.rs layers are gone (oakundo/oakcommon/oaknode/oaktimeline/oakcodec/oakaudio/ oakrender/oaktask/oakplugin/oakstorage); cross-crate calls are plain Rust, CHandle marshalling shrinks to the oakengine boundary, and tests call the Rust APIs directly (pure C-ABI wrapper tests removed where the domain layer already covers the behavior). exporter.h family implemented: oakengine_export_render (CLI contract), oakengine_export_render_with_params (was a stub), last_error and progress callback; synchronous path reuses task_create_export + start_sync. Fixes on the way: oaktask video ticket self-deadlock, audio params dropped on the export path, codec encoder AAC slicing and H.264 time base. Real-mp4 tests cover both entry points, progress and the illegal-argument matrix. Also: oakstorage session maps null project handles to None (version- info path), configstore test double literal 3.14 -> 3.15 (clippy PI lint), oakaudio output callback scratch buffer + env-aware P1 test, cli media round-trip test uses a generated 16-frame clip (no more minute-long debug runs).
56 lines
2.1 KiB
TOML
56 lines
2.1 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" }
|
|
|
|
[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" }
|