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