From 7a335a0408b3ee426949a1936255666bc3383ea9 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 2 Sep 2021 15:12:55 +0700 Subject: Implement and expose `read` and `write` helpers for `clipboard` --- src/clipboard.rs | 3 +++ src/lib.rs | 1 + 2 files changed, 4 insertions(+) create mode 100644 src/clipboard.rs (limited to 'src') diff --git a/src/clipboard.rs b/src/clipboard.rs new file mode 100644 index 00000000..dde17051 --- /dev/null +++ b/src/clipboard.rs @@ -0,0 +1,3 @@ +//! Access the clipboard. +#[cfg(not(target_arch = "wasm32"))] +pub use crate::runtime::clipboard::{read, write}; diff --git a/src/lib.rs b/src/lib.rs index 8bf4d0e0..e4f00c07 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -183,6 +183,7 @@ mod error; mod result; mod sandbox; +pub mod clipboard; pub mod executor; pub mod keyboard; pub mod mouse; -- cgit