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)
36 lines
1.6 KiB
Rust
36 lines
1.6 KiB
Rust
// Oak Video Editor - Non-Linear Video Editor
|
|
// Copyright (C) 2026 Oak Team
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! C ABI imports from the other oak modules.
|
|
//!
|
|
//! The codec module links against oakcommon and oakrender at the C ABI.
|
|
//! Every signature below mirrors the corresponding public header
|
|
//! verbatim and is resolved at link time. The by-value handle structs
|
|
//! (`OakVideoParams`, `OakRenderTexture`, …) are `#[repr(C)]` mirrors of
|
|
//! the `{ctx, addref, release, abi_version}` layout so the codec crate
|
|
//! can hold and hand them across the FFI boundary without translation.
|
|
|
|
pub mod common;
|
|
pub mod render;
|
|
|
|
// In-memory mocks for the oakcommon/oakrender C ABI so the crate links
|
|
// and is testable under `cargo test` (where those dylibs are absent).
|
|
// The `test-stubs` feature additionally compiles the oakcore_*/oakrender_*
|
|
// host-mocks for consumer test binaries (e.g. oaknode's) that link this
|
|
// crate directly — those symbols are not provided by any Rust crate.
|
|
#[cfg(any(test, feature = "test-stubs"))]
|
|
pub mod test_stubs;
|