Debian Codegraph @

third_party/rust/midir/src/backend/mod.rs

raw
1 // This module is not public
2
3 // TODO: improve feature selection (make sure that there is always exactly one implementation, or enable dynamic backend selection)
4 // TODO: allow to disable build dependency on ALSA
5
6 #[cfg(all(target_os="windows", not(feature = "winrt")))] mod winmm;
7 #[cfg(all(target_os="windows", not(feature = "winrt")))] pub use self::winmm::*;
8
9 #[cfg(all(target_os="windows", feature = "winrt"))] mod winrt;
10 #[cfg(all(target_os="windows", feature = "winrt"))] pub use self::winrt::*;
11
12 #[cfg(all(target_os="macos", not(feature = "jack")))] mod coremidi;
13 #[cfg(all(target_os="macos", not(feature = "jack")))] pub use self::coremidi::*;
14
15 #[cfg(all(target_os="linux", not(feature = "jack")))] mod alsa;
16 #[cfg(all(target_os="linux", not(feature = "jack")))] pub use self::alsa::*;
17
18 #[cfg(all(feature = "jack", not(target_os="windows")))] mod jack;
19 #[cfg(all(feature = "jack", not(target_os="windows")))] pub use self::jack::*;
20
21 #[cfg(target_arch="wasm32")] mod webmidi;
22 #[cfg(target_arch="wasm32")] pub use self::webmidi::*;