1#![deny(clippy::all, clippy::if_not_else, clippy::enum_glob_use)]
15
16mod common;
17pub use crate::common::ClipboardProvider;
18
19#[cfg(all(
20 unix,
21 not(any(
22 target_os = "macos",
23 target_os = "android",
24 target_os = "ios",
25 target_os = "emscripten"
26 ))
27))]
28#[cfg(feature = "wayland")]
29pub mod wayland_clipboard;
30#[cfg(all(
31 unix,
32 not(any(
33 target_os = "macos",
34 target_os = "android",
35 target_os = "ios",
36 target_os = "emscripten"
37 ))
38))]
39#[cfg(feature = "x11")]
40pub mod x11_clipboard;
41
42#[cfg(windows)]
43pub mod windows_clipboard;
44
45#[cfg(target_os = "macos")]
46pub mod osx_clipboard;
47
48pub mod nop_clipboard;
49
50#[cfg(all(
51 unix,
52 not(any(
53 target_os = "macos",
54 target_os = "android",
55 target_os = "ios",
56 target_os = "emscripten"
57 ))
58))]
59#[cfg(feature = "x11")]
60pub type ClipboardContext = x11_clipboard::X11ClipboardContext;
61#[cfg(windows)]
62pub type ClipboardContext = windows_clipboard::WindowsClipboardContext;
63#[cfg(target_os = "macos")]
64pub type ClipboardContext = osx_clipboard::OSXClipboardContext;
65#[cfg(target_os = "android")]
66pub type ClipboardContext = nop_clipboard::NopClipboardContext; #[cfg(target_os = "ios")]
68pub type ClipboardContext = nop_clipboard::NopClipboardContext; #[cfg(not(any(
70 unix,
71 windows,
72 target_os = "macos",
73 target_os = "android",
74 target_os = "ios",
75 target_os = "emscripten"
76)))]
77pub type ClipboardContext = nop_clipboard::NopClipboardContext;