#![allow(clippy::too_long_first_doc_paragraph)] #![cfg_attr(windows, allow(unsafe_code))]
#![cfg_attr(not(windows), deny(unsafe_code))]
#[cfg(windows)]
mod capture_exclusion;
#[cfg(windows)]
mod desktop_audio;
#[cfg(windows)]
mod dxgi;
#[cfg(windows)]
mod dxgi_shared;
#[cfg(windows)]
mod wgc;
#[cfg(windows)]
pub use capture_exclusion::exclude_window_from_capture;
#[cfg(windows)]
pub use desktop_audio::WindowsDesktopAudioCapture;
#[cfg(windows)]
pub use dxgi::{WindowsScreenCapture, enumerate_outputs};
#[cfg(windows)]
pub use wgc::WindowsWindowCapture;
#[cfg(not(windows))]
mod host_stub;
#[cfg(not(windows))]
pub use host_stub::{
WindowsDesktopAudioCapture, WindowsScreenCapture, WindowsWindowCapture, enumerate_outputs,
exclude_window_from_capture,
};
#[cfg(all(test, windows))]
pub(crate) static HARDWARE_TEST_LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(());
#[cfg(all(test, windows))]
#[path = "lib_tests.rs"]
mod tests;