# Oak - 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 . [package] name = "oak-cli" version = "0.1.0" edition = "2021" description = "Oak Video Editor headless command-line consumer of the liboakengine C ABI facade (Rust)" license = "GPL-3.0-or-later" [[bin]] name = "oak-cli" path = "src/main.rs" [dependencies] clap = { version = "4", features = ["derive"] } # oak-cli is a PURE C-ABI consumer of the built `liboakengine` cdylib: # every engine call goes through the `extern "C"` declarations in # src/ffi.rs (and the dlsym-resolved optional families in src/optional.rs). # No oak* crate appears here — not even oakengine, which is cdylib-only: # the link happens through build.rs (rustc-link-search + rpath pointing at # the profile dir `cargo build -p oakengine` produces the dylib in) and # the `#[link(name = "oakengine", kind = "dylib")]` block in src/ffi.rs. # Build order: `cargo build -p oakengine` first, then `cargo build` / # `cargo test -p oak-cli` (linking and running the binary need the dylib; # `cargo check` does not link and works standalone).