media_device/lib.rs
1#[cfg(feature = "video")]
2#[cfg(any(target_os = "windows", target_os = "macos", target_os = "ios"))]
3pub mod camera;
4
5mod device;
6
7use cfg_if::cfg_if;
8pub use device::*;
9
10cfg_if! {
11 if #[cfg(target_os = "windows")] {
12 #[path = "windows/mod.rs"]
13 pub mod backend;
14 } else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
15 #[path = "mac/mod.rs"]
16 pub mod backend;
17 }
18}