]> git.nihav.org Git - nihav.git/commitdiff
nihav_llaudio: add conditional compilation for modules
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 16 Nov 2021 17:23:47 +0000 (18:23 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 16 Nov 2021 17:23:47 +0000 (18:23 +0100)
nihav-llaudio/src/lib.rs

index d7a2633d04fb7990432f58be1dc70489d8a3c082..4079e56ef28c544a5dbceae858dc57d4fd9f7d78 100644 (file)
@@ -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;