Single mechanical restructure commit: - root Cargo.toml = oakapp bin + workspace; one cargo build produces oakapp, oak-cli, oak-worker, liboakengine.dylib - app/rust/src -> src/ (app at repo root, no rust/ nesting) - src/<mod>/rust -> crates/oak<mod>; src/oakcore-rs -> crates/oakcore; src/bindings/oakotio -> crates/oakotio; src/engine/rust -> crates/oakengine (keeps cdylib+staticlib+rlib) - public C headers include/<mod>/ -> crates/oakengine/include/<mod>/ - OFX SDK headers vendored into crates/oakplugin/ofx/ (HostSupport gone) - legacy deleted: old src/ C++ modules, engine/, core/, ffmpeg_bridge/, app/ (Qt), cli/worker C++, root CMakeLists, third_party/KDDockWidgets submodule, otio-install, all build-* output (~40GB) - oakstorage kept but excluded from the workspace (skeleton w/ todos); gpui excluded (own workspace) - verified: cargo build green, cargo test --workspace 1845/0 (with the documented OCIO_RS_* env override for the homebrew OCIO)
33 lines
1.3 KiB
TOML
33 lines
1.3 KiB
TOML
[package]
|
|
name = "oakplugin"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Oak Video Editor plugin module: self-contained OFX host and plugin bridge (Rust)"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
# staticlib: linked into liboakplugin by CMake (see M11 §3.3).
|
|
# cdylib is NOT used: the module dylib stays a CMake target so the
|
|
# standalone-tree wiring (rpath, force_load, tests) is unchanged.
|
|
[lib]
|
|
crate-type = ["staticlib", "rlib"]
|
|
|
|
[dependencies]
|
|
# 共享 ABI 类型(CHandle 等,单库化统一,见 docs/zh/plans/riir/single-lib.md)。
|
|
# 模块桥改直接 Rust 调用(单库化,见 docs/zh/plans/riir/single-lib.md);
|
|
# 只允许零依赖起步。确需引入的 crate 必须在 README 登记理由。
|
|
oakcore-rs = { path = "../oakcore" }
|
|
oakundo = { path = "../oakundo" }
|
|
oaknode = { path = "../oaknode" }
|
|
oakrender = { path = "../oakrender" }
|
|
|
|
[features]
|
|
# 测试桩(库内状态访问器):cargo test --features test-stubs 时桥直连
|
|
# 桩,像素路径可在无真实 GL/GPU 的环境下跑通。桩的 C ABI 符号不再
|
|
# no_mangle(真实 oaknode/oakrender/oakundo 已作为 path 依赖链接,
|
|
# 避免重复符号);真实链路走直接 Rust 调用。
|
|
test-stubs = []
|
|
|
|
[build-dependencies]
|
|
# C shim 编译(message suite 的 variadic 入口);理由已登记 README。
|
|
cc = "1"
|