Files
oak-editor/crates/oak-plugin/Cargo.toml
T
Mike-Solar 4babbf5de8
CI / Build & test (Linux) (push) Successful in 24m6s
CI / Build & test (Windows) (push) Successful in 31m14s
core: merge oak-common into oak-core
oak-common is gone; its modules (configstore, xmlutils, ocioutils,
oiioutils, colormath, colortransform, videoparams, ffmpegutils, ...)
now live in oak-core alongside the value types. The render value/GPU
types moved too: backend (wgpu context + DisplayRenderer), color
(ColorProcessor over ocio-rs), texture, frame, and the commonutil
config helpers.

Fix-ups to make the merged tree build and pass tests:

- oak-core Cargo.toml: wgpu back to 25 (the moved backend code is
  written against that API generation); add the toml/quick-xml/image
  deps oak-common carried.
- lib.rs: drop the duplicate 'pub mod error;'.
- error.rs: unified OAKCORE_* codes; restore Error::new() and
  From<OcioError> from oak-common's error type.
- backend.rs/color.rs: oak_core::/oak_render:: self-references
  rewritten to crate::; the shaderfx-dependent GPU effect test moved
  to oak-render's shaderfx tests (shaderfx depends on oak-node and
  cannot live in oak-core).
- oak-render's error module re-exports oak_core::error::{Error,
  Result}; the OAKRENDER_* codes stay as the public-code contract.
- oak-node jobs.rs: ColorProcessor imported from oak_core::color.
- Integration tests repointed at oak_core::{texture, frame, backend,
  color, colormath}.
- the display-ICC regression test treats an empty OAK_DISPLAY_ICC as
  unset, matching displayicc::env_override_icc.
2026-09-03 17:42:20 +08:00

35 lines
1.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[package]
name = "oak-plugin"
version.workspace = true
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 登记理由。
oak-core = { path = "../oak-core" }
oak-undo = { path = "../oak-undo" }
oak-node = { path = "../oak-node" }
oak-render = { path = "../oak-render" }
# Error deriveDisplay + std::error::Error,见 src/error.rs);理由已登记 README。
thiserror = "2"
[features]
# 历史 feature(原桥测试桩开关):单库化后 oaknode/oakrender/oakundo
# 以 path 依赖直连,句柄式调用面改为本地桩(见 src/node.rs /
# src/render.rs 的 `// STUB` 标记),本 feature 无 cfg 使用点——
# 保留以避免工作区/构建脚本 `--features test-stubs` 断裂。
test-stubs = []
[build-dependencies]
# C shim 编译(message suite 的 variadic 入口);理由已登记 README。
cc = "1"