accesskit_winit/platform_impl/
mod.rs

1// Copyright 2022 The AccessKit Authors. All rights reserved.
2// Licensed under the Apache License, Version 2.0 (found in
3// the LICENSE-APACHE file).
4
5// Based loosely on winit's src/platform_impl/mod.rs.
6
7pub use self::platform::*;
8
9#[cfg(target_os = "windows")]
10#[path = "windows.rs"]
11mod platform;
12
13#[cfg(target_os = "macos")]
14#[path = "macos.rs"]
15mod platform;
16
17#[cfg(all(
18    feature = "accesskit_unix",
19    any(
20        target_os = "linux",
21        target_os = "dragonfly",
22        target_os = "freebsd",
23        target_os = "netbsd",
24        target_os = "openbsd"
25    )
26))]
27#[path = "unix.rs"]
28mod platform;
29
30#[cfg(all(feature = "accesskit_android", target_os = "android"))]
31#[path = "android.rs"]
32mod platform;
33
34#[cfg(not(any(
35    target_os = "windows",
36    target_os = "macos",
37    all(
38        feature = "accesskit_unix",
39        any(
40            target_os = "linux",
41            target_os = "dragonfly",
42            target_os = "freebsd",
43            target_os = "netbsd",
44            target_os = "openbsd"
45        )
46    ),
47    all(feature = "accesskit_android", target_os = "android")
48)))]
49#[path = "null.rs"]
50mod platform;