media_device/
lib.rs

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