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-12-25 09:57:27 +02:00
|
|
|
#[cfg(android_platform)]
|
2019-02-05 10:30:33 -05:00
|
|
|
pub mod android;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(ios_platform)]
|
2019-02-05 10:30:33 -05:00
|
|
|
pub mod ios;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(macos_platform)]
|
2019-02-05 10:30:33 -05:00
|
|
|
pub mod macos;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(wayland_platform)]
|
2022-09-01 07:05:32 +02:00
|
|
|
pub mod wayland;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(wasm_platform)]
|
2022-06-11 18:57:19 +02:00
|
|
|
pub mod web;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(windows_platform)]
|
2019-02-05 10:30:33 -05:00
|
|
|
pub mod windows;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(x11_platform)]
|
2022-09-01 07:05:32 +02:00
|
|
|
pub mod x11;
|
2015-04-24 09:51:23 +02:00
|
|
|
|
2022-09-01 07:05:32 +02:00
|
|
|
#[cfg(any(
|
2022-12-25 09:57:27 +02:00
|
|
|
windows_platform,
|
|
|
|
|
macos_platform,
|
|
|
|
|
android_platform,
|
|
|
|
|
x11_platform,
|
|
|
|
|
wayland_platform
|
2022-09-01 07:05:32 +02:00
|
|
|
))]
|
2020-11-12 20:49:44 +01:00
|
|
|
pub mod run_return;
|