mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
1ca8b65e85
This also removes deprecated `WindowExtUnix::is_ready`.
62 lines
1.3 KiB
Rust
62 lines
1.3 KiB
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(target_os = "android")]
|
|
pub mod android;
|
|
#[cfg(target_os = "ios")]
|
|
pub mod ios;
|
|
#[cfg(target_os = "macos")]
|
|
pub mod macos;
|
|
#[cfg(all(
|
|
feature = "wayland",
|
|
any(
|
|
target_os = "linux",
|
|
target_os = "dragonfly",
|
|
target_os = "freebsd",
|
|
target_os = "netbsd",
|
|
target_os = "openbsd",
|
|
)
|
|
))]
|
|
pub mod wayland;
|
|
#[cfg(target_arch = "wasm32")]
|
|
pub mod web;
|
|
#[cfg(target_os = "windows")]
|
|
pub mod windows;
|
|
#[cfg(all(
|
|
feature = "x11",
|
|
any(
|
|
target_os = "linux",
|
|
target_os = "dragonfly",
|
|
target_os = "freebsd",
|
|
target_os = "netbsd",
|
|
target_os = "openbsd",
|
|
)
|
|
))]
|
|
pub mod x11;
|
|
|
|
#[cfg(any(
|
|
target_os = "windows",
|
|
target_os = "macos",
|
|
target_os = "android",
|
|
target_os = "linux",
|
|
target_os = "dragonfly",
|
|
target_os = "freebsd",
|
|
target_os = "netbsd",
|
|
target_os = "openbsd"
|
|
))]
|
|
pub mod run_return;
|