winit/platform/
mod.rs

1//! Contains traits with platform-specific methods in them.
2//!
3//! Contains the follow OS-specific modules:
4//!
5//!  - `android`
6//!  - `ios`
7//!  - `macos`
8//!  - `unix`
9//!  - `windows`
10//!  - `web`
11//!
12//! And the following platform-specific module:
13//!
14//! - `run_return` (available on `windows`, `unix`, `macos`, and `android`)
15//!
16//! However only the module corresponding to the platform you're compiling to will be available.
17
18#[cfg(android_platform)]
19pub mod android;
20#[cfg(ios_platform)]
21pub mod ios;
22#[cfg(macos_platform)]
23pub mod macos;
24#[cfg(orbital_platform)]
25pub mod orbital;
26// #[cfg(wayland_platform)]
27// pub mod wayland;
28#[cfg(wasm_platform)]
29pub mod web;
30#[cfg(windows_platform)]
31pub mod windows;
32// #[cfg(x11_platform)]
33// pub mod x11;
34
35#[cfg(any(
36    windows_platform,
37    macos_platform,
38    android_platform,
39    x11_platform,
40    wayland_platform,
41    orbital_platform
42))]
43pub mod run_return;
44
45#[cfg(any(x11_platform, wayland_platform,))]
46pub mod unix;