mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
* Add Redox OS support * Simplify control flow usage * Apply more recommendations * Update naming to indicate that Orbital is a platform * Adjust import order
44 lines
906 B
Rust
44 lines
906 B
Rust
//! Contains traits with platform-specific methods in them.
|
|
//!
|
|
//! Contains the follow OS-specific modules:
|
|
//!
|
|
//! - `android`
|
|
//! - `ios`
|
|
//! - `macos`
|
|
//! - `unix`
|
|
//! - `windows`
|
|
//! - `web`
|
|
//!
|
|
//! And the following platform-specific module:
|
|
//!
|
|
//! - `run_return` (available on `windows`, `unix`, `macos`, and `android`)
|
|
//!
|
|
//! However only the module corresponding to the platform you're compiling to will be available.
|
|
|
|
#[cfg(android_platform)]
|
|
pub mod android;
|
|
#[cfg(ios_platform)]
|
|
pub mod ios;
|
|
#[cfg(macos_platform)]
|
|
pub mod macos;
|
|
#[cfg(orbital_platform)]
|
|
pub mod orbital;
|
|
#[cfg(wayland_platform)]
|
|
pub mod wayland;
|
|
#[cfg(wasm_platform)]
|
|
pub mod web;
|
|
#[cfg(windows_platform)]
|
|
pub mod windows;
|
|
#[cfg(x11_platform)]
|
|
pub mod x11;
|
|
|
|
#[cfg(any(
|
|
windows_platform,
|
|
macos_platform,
|
|
android_platform,
|
|
x11_platform,
|
|
wayland_platform,
|
|
orbital_platform
|
|
))]
|
|
pub mod run_return;
|