Skip to main content

oxideav_codec/
lib.rs

1//! Codec traits and registry — re-export shim.
2//!
3//! Historically this crate hosted the `Decoder` / `Encoder` traits and
4//! the `CodecRegistry`. Those types moved to `oxideav-core` so the
5//! unified `RuntimeContext` (which holds the codec registry alongside
6//! the container / source / filter registries) doesn't pull a circular
7//! dependency. This crate is now a thin re-export so existing
8//! `use oxideav_codec::Decoder;` continues to compile unchanged.
9
10pub use oxideav_core::{
11    CodecImplementation, CodecInfo, CodecRegistry, Decoder, DecoderFactory, Encoder, EncoderFactory,
12};
13
14/// Compatibility module path for callers that imported through
15/// `oxideav_codec::registry::*`. The relocated types live in
16/// [`oxideav_core::registry::codec`].
17pub mod registry {
18    pub use oxideav_core::registry::codec::{
19        CodecImplementation, CodecInfo, CodecRegistry, Decoder, DecoderFactory, Encoder,
20        EncoderFactory,
21    };
22}