From 27b258cf31ae5557c99ae66537fb9196368d4d8b Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Mon, 15 Apr 2024 10:53:32 +0200 Subject: [PATCH] chore(clipboard): expose `Clipboard` struct (#1185) --- .changes/clipboard-expose-struct.md | 5 +++++ plugins/clipboard-manager/src/lib.rs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changes/clipboard-expose-struct.md diff --git a/.changes/clipboard-expose-struct.md b/.changes/clipboard-expose-struct.md new file mode 100644 index 000000000..74750d584 --- /dev/null +++ b/.changes/clipboard-expose-struct.md @@ -0,0 +1,5 @@ +--- +"clipboard-manager": "patch" +--- + +Expose `Clipboard` struct diff --git a/plugins/clipboard-manager/src/lib.rs b/plugins/clipboard-manager/src/lib.rs index a15b6f77b..3ebf0ad40 100644 --- a/plugins/clipboard-manager/src/lib.rs +++ b/plugins/clipboard-manager/src/lib.rs @@ -30,9 +30,9 @@ mod models; pub use error::{Error, Result}; #[cfg(desktop)] -use desktop::Clipboard; +pub use desktop::Clipboard; #[cfg(mobile)] -use mobile::Clipboard; +pub use mobile::Clipboard; /// Extensions to [`tauri::App`], [`tauri::AppHandle`], [`tauri::WebviewWindow`], [`tauri::Webview`] and [`tauri::Window`] to access the clipboard APIs. pub trait ClipboardExt {