thiserror derive across oakundo/oakcommon/oaknode/oaktimeline/oaktask/ oakotio/oakcodec/oakaudio/oakrender/oakplugin/oakengine/oakstorage; Display carries the module prefix and the Failed context, source() stays default except oakotio's #[from] forwarding. code() mappings and variants unchanged; each error.rs gains Display/object-safety/code regression tests.
37 lines
1.4 KiB
TOML
37 lines
1.4 KiB
TOML
[package]
|
|
name = "oakcodec"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Oak Video Editor media codec module (Rust)"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lib]
|
|
crate-type = ["staticlib", "rlib"]
|
|
|
|
[features]
|
|
# Compile the oakcore_*/oakrender_* host-mocks in src/bridge/test_stubs.rs so
|
|
# consumer test binaries that link this crate (e.g. oaknode's) can resolve
|
|
# those cross-crate C-ABI symbols without the host dylibs.
|
|
test-stubs = []
|
|
|
|
[dependencies]
|
|
oakffmpeg-link = { path = "../oakffmpeg-link" }
|
|
oakcore-rs = { path = "../oakcore" }
|
|
# Real media decode/encode. The C++ ffmpeg_bridge library existed only to
|
|
# absorb FFmpeg API churn; the Rust crate calls ffmpeg-next directly.
|
|
#
|
|
# ffmpeg-next 9.x pairs with FFmpeg 8.x headers, which most distros do
|
|
# not ship yet — build a matching GPL FFmpeg (all free-license codecs +
|
|
# per-OS hardware acceleration, static+PIC) with
|
|
# tooling/ffmpeg/build-ffmpeg.sh and point cargo at it via FFMPEG_DIR
|
|
# (see docs/build.md). The `static` feature makes the linker prefer the
|
|
# archives.
|
|
#
|
|
# ffmpeg-next's own `build` feature is NOT usable: it clones
|
|
# release/<crate-version>, and every such pairing is broken upstream
|
|
# (9.0.0 -> FFmpeg 9.0 removed AVCodec fields; 8.1.0 -> FFmpeg 8.1 added
|
|
# enum variants; 8.0.0 -> FFmpeg 8.0 renamed FF_PROFILE_*).
|
|
ffmpeg-next = { version = "9.0", features = ["static"] }
|
|
# `std::error::Error` impls for the crate-internal error enum.
|
|
thiserror = "2"
|