1- //! Contains traits with platform-specific methods in them.
1+ //! # Platform implementations
22//!
3- //! Only the modules corresponding to the platform you're compiling to will be available.
3+ //! This module re-exports the platform-specific implementation crates that are used by default in
4+ //! Winit.
5+ //!
6+ //! Only the crates / modules corresponding to the platform you're compiling to will be available.
7+ //!
8+ //! | Platform | Crate | Module |
9+ //! | -------- | ----- | ------ |
10+ # , "/) | `winit::platform::android` |" ) ]
11+ # , "/) | `winit::platform::macos` |" ) ]
12+ # , "/) | `winit::platform::orbital` |" ) ]
13+ # , "/) | `winit::platform::ios` |" ) ]
14+ # , "/) | `winit::platform::wayland` |" ) ]
15+ # , "/) | `winit::platform::web` |" ) ]
16+ # , "/) | `winit::platform::windows` |" ) ]
17+ # , "/) | `winit::platform::x11` |" ) ]
18+ //! ## Common modules
19+ //!
20+ //! Furthermore, we provide two modules for common functionality:
21+ //! - `scancode`, available on Windows, macOS, Wayland and X11.
22+ //! - `startup_notify`, available on Wayland and X11.
423
524#[ cfg( android_platform) ]
625pub use winit_android as android;
@@ -10,8 +29,6 @@ pub use winit_appkit as macos;
1029pub use winit_orbital as orbital;
1130#[ cfg( ios_platform) ]
1231pub use winit_uikit as ios;
13- #[ cfg( any( x11_platform, wayland_platform) ) ]
14- pub mod startup_notify;
1532#[ cfg( wayland_platform) ]
1633pub use winit_wayland as wayland;
1734#[ cfg( web_platform) ]
@@ -23,3 +40,5 @@ pub use winit_x11 as x11;
2340
2441#[ cfg( any( windows_platform, macos_platform, x11_platform, wayland_platform, docsrs) ) ]
2542pub mod scancode;
43+ #[ cfg( any( x11_platform, wayland_platform, docsrs) ) ]
44+ pub mod startup_notify;
0 commit comments