feat(clipboard): add plugin (#323)

This commit is contained in:
Lucas Fernandes Nogueira
2023-04-18 10:19:45 -03:00
committed by GitHub
parent 4539c03f95
commit 8cd7d3501b
37 changed files with 4679 additions and 22 deletions
-5
View File
@@ -7,8 +7,6 @@ use tauri::{
Manager, Runtime,
};
use std::{collections::HashMap, sync::Mutex};
pub use models::*;
#[cfg(desktop)]
@@ -27,9 +25,6 @@ use desktop::{{ plugin_name_pascal_case }};
#[cfg(mobile)]
use mobile::{{ plugin_name_pascal_case }};
#[derive(Default)]
struct MyState(Mutex<HashMap<String, String>>);
/// Extensions to [`tauri::App`], [`tauri::AppHandle`] and [`tauri::Window`] to access the {{ plugin_name }} APIs.
pub trait {{ plugin_name_pascal_case }}Ext<R: Runtime> {
fn {{ plugin_name_snake_case }}(&self) -> &{{ plugin_name_pascal_case }}<R>;