From ca7351dc7cad5ac1f8e83e9de60134fb3f4dbf63 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 16 Nov 2021 18:23:47 +0100 Subject: [PATCH] nihav_llaudio: add conditional compilation for modules --- nihav-llaudio/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.5