feat!: add Listener and Emitter traits (#9640)

* feat!: add `Listener` and `Emitter` traits

* keep only trait implementation

* change file

* fix doctests

* fix build
This commit is contained in:
Amr Bashir
2024-07-12 15:01:40 +03:00
committed by GitHub
parent 1a88fc1a9b
commit ba9590aa92
14 changed files with 856 additions and 503 deletions

View File

@@ -4035,6 +4035,17 @@ dependencies = [
"syn 2.0.63",
]
[[package]]
name = "windows-implement"
version = "0.56.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6fc35f58ecd95a9b71c4f2329b911016e6bec66b3f2e6a4aad86bd2e99e2f9b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.52",
]
[[package]]
name = "windows-interface"
version = "0.57.0"
@@ -4046,6 +4057,17 @@ dependencies = [
"syn 2.0.63",
]
[[package]]
name = "windows-interface"
version = "0.56.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08990546bf4edef8f431fa6326e032865f27138718c587dc21bc0265bbcb57cc"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.52",
]
[[package]]
name = "windows-result"
version = "0.1.1"

View File

@@ -12,7 +12,7 @@ use serde::Serialize;
use tauri::{
ipc::Channel,
webview::{PageLoadEvent, WebviewWindowBuilder},
App, AppHandle, Manager, RunEvent, Runtime, WebviewUrl,
App, AppHandle, Emitter, Listener, Manager, RunEvent, Runtime, WebviewUrl,
};
use tauri_plugin_sample::{PingRequest, SampleExt};