]> git.nihav.org Git - nihav.git/commitdiff
nihav_flash: enable codecs module only when encoders/decoders are enabled
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 9 Nov 2021 17:24:04 +0000 (18:24 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 9 Nov 2021 17:24:04 +0000 (18:24 +0100)
nihav-flash/src/lib.rs

index bfe1756e096f8539f24414e99cf4a05f52528ead..1aa08c383739129b392835f3c02008d561ad8aeb 100644 (file)
@@ -2,6 +2,7 @@
 extern crate nihav_core;
 extern crate nihav_codec_support;
 
+#[cfg(any(feature="decoders", feature="encoders"))]
 mod codecs;
 
 #[cfg(feature="decoders")]