clipawl 0.2.1

Clipboard API for Rust: Web (wasm), Android, and Linux (Wayland + X11) with a portable async API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use cfg_if::cfg_if;

cfg_if! {
    if #[cfg(target_arch = "wasm32")] {
        mod web;
        pub(crate) use web::ClipboardImpl;
    } else if #[cfg(target_os = "android")] {
        mod android;
        pub(crate) use android::ClipboardImpl;
    } else if #[cfg(target_os = "linux")] {
        mod linux;
        pub(crate) use linux::ClipboardImpl;
    } else {
        mod unsupported;
        pub(crate) use unsupported::ClipboardImpl;
    }
}