2019-02-06 02:30:33 +11:00
|
|
|
//! Contains traits with platform-specific methods in them.
|
|
|
|
//!
|
|
|
|
//! Contains the follow OS-specific modules:
|
|
|
|
//!
|
|
|
|
//! - `android`
|
|
|
|
//! - `ios`
|
|
|
|
//! - `macos`
|
|
|
|
//! - `unix`
|
|
|
|
//! - `windows`
|
2019-09-25 09:33:32 +10:00
|
|
|
//! - `web`
|
2019-02-06 02:30:33 +11:00
|
|
|
//!
|
|
|
|
//! And the following platform-specific module:
|
|
|
|
//!
|
2020-11-13 06:49:44 +11:00
|
|
|
//! - `run_return` (available on `windows`, `unix`, `macos`, and `android`)
|
2019-02-06 02:30:33 +11:00
|
|
|
//!
|
|
|
|
//! However only the module corresponding to the platform you're compiling to will be available.
|
2015-04-24 17:51:23 +10:00
|
|
|
|
2022-09-01 15:05:32 +10:00
|
|
|
#[cfg(target_os = "android")]
|
2019-02-06 02:30:33 +11:00
|
|
|
pub mod android;
|
2022-09-01 15:05:32 +10:00
|
|
|
#[cfg(target_os = "ios")]
|
2019-02-06 02:30:33 +11:00
|
|
|
pub mod ios;
|
2022-09-01 15:05:32 +10:00
|
|
|
#[cfg(target_os = "macos")]
|
2019-02-06 02:30:33 +11:00
|
|
|
pub mod macos;
|
2022-09-01 15:05:32 +10:00
|
|
|
#[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")]
|
2022-06-12 02:57:19 +10:00
|
|
|
pub mod web;
|
2022-09-01 15:05:32 +10:00
|
|
|
#[cfg(target_os = "windows")]
|
2019-02-06 02:30:33 +11:00
|
|
|
pub mod windows;
|
2022-09-01 15:05:32 +10:00
|
|
|
#[cfg(all(
|
|
|
|
feature = "x11",
|
|
|
|
any(
|
|
|
|
target_os = "linux",
|
|
|
|
target_os = "dragonfly",
|
|
|
|
target_os = "freebsd",
|
|
|
|
target_os = "netbsd",
|
|
|
|
target_os = "openbsd",
|
|
|
|
)
|
|
|
|
))]
|
|
|
|
pub mod x11;
|
2015-04-24 17:51:23 +10:00
|
|
|
|
2022-09-01 15:05:32 +10:00
|
|
|
#[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"
|
|
|
|
))]
|
2020-11-13 06:49:44 +11:00
|
|
|
pub mod run_return;
|