From: Kostya Shishkov Date: Tue, 16 Nov 2021 17:23:47 +0000 (+0100) Subject: nihav_llaudio: add conditional compilation for modules X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=ca7351dc7cad5ac1f8e83e9de60134fb3f4dbf63;p=nihav.git nihav_llaudio: add conditional compilation for modules --- diff --git a/nihav-llaudio/src/lib.rs b/nihav-llaudio/src/lib.rs index d7a2633..4079e56 100644 --- a/nihav-llaudio/src/lib.rs +++ b/nihav-llaudio/src/lib.rs @@ -2,16 +2,24 @@ extern crate nihav_core; extern crate nihav_codec_support; +#[cfg(any(feature="decoders", feature="encoders"))] #[allow(clippy::comparison_chain)] #[allow(clippy::unreadable_literal)] #[allow(clippy::verbose_bit_mask)] mod codecs; +#[cfg(feature="demuxers")] #[allow(clippy::unreadable_literal)] mod demuxers; +#[cfg(feature="muxers")] mod muxers; +#[cfg(feature="decoders")] pub use crate::codecs::llaudio_register_all_decoders; pub use crate::demuxers::llaudio_register_all_demuxers; +#[cfg(feature="decoders")] pub use crate::codecs::llaudio_register_all_packetisers; +#[cfg(feature="demuxers")] pub use crate::demuxers::llaudio_register_all_raw_demuxers; +#[cfg(feature="encoders")] pub use crate::codecs::llaudio_register_all_encoders; +#[cfg(feature="muxers")] pub use crate::muxers::llaudio_register_all_muxers;