We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[specta(rename = ...)]
tauri::ipc::Channel
1 parent 4794a6b commit 4d5d78dCopy full SHA for 4d5d78d
2 files changed
.changes/change-pr-14812.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch:bug
3
4
+
5
+fix(specta): don't use `#[specta(rename = ...)]` with `tauri::ipc::Channel`
crates/tauri/src/ipc/channel.rs
@@ -54,9 +54,9 @@ pub struct Channel<TSend = InvokeResponseBody> {
54
#[cfg(feature = "specta")]
55
const _: () = {
56
#[derive(specta::Type)]
57
- #[specta(remote = super::Channel, rename = "TAURI_CHANNEL")]
58
- #[allow(dead_code)]
59
- struct Channel<TSend>(std::marker::PhantomData<TSend>);
+ #[specta(remote = super::Channel)]
+ #[allow(dead_code, non_camel_case_types)]
+ struct TAURI_CHANNEL<TSend>(std::marker::PhantomData<TSend>);
60
};
61
62
impl<TSend> Clone for Channel<TSend> {
0 commit comments