Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

M-HW: keep the Windows-only annexb/biplanar helpers warning-free on other systems (#141)

Brandon Thomas6ce2038a003d
diff --git a/crates/platform/src/lib.rs b/crates/platform/src/lib.rs
index 706da0c38..2a467743a 100644
--- a/crates/platform/src/lib.rs
+++ b/crates/platform/src/lib.rs
@@ -25,7 +25,10 @@
#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable))]
+// Used by the Windows decoder only; compiled everywhere so their tests run on every system.
+#[cfg_attr(not(target_os = "windows"), allow(dead_code))]
mod annexb;
+#[cfg_attr(not(target_os = "windows"), allow(dead_code))]
mod biplanar;
#[cfg(target_os = "macos")]
pub mod hardware_encode;