diff --git a/.changes/change-pr-14812.md b/.changes/change-pr-14812.md new file mode 100644 index 000000000..96c1f36c0 --- /dev/null +++ b/.changes/change-pr-14812.md @@ -0,0 +1,5 @@ +--- +"tauri": patch:bug +--- + +fix(specta): don't use `#[specta(rename = ...)]` with `tauri::ipc::Channel` diff --git a/crates/tauri/src/ipc/channel.rs b/crates/tauri/src/ipc/channel.rs index c33caf2a2..0b3eb6778 100644 --- a/crates/tauri/src/ipc/channel.rs +++ b/crates/tauri/src/ipc/channel.rs @@ -54,9 +54,9 @@ pub struct Channel { #[cfg(feature = "specta")] const _: () = { #[derive(specta::Type)] - #[specta(remote = super::Channel, rename = "TAURI_CHANNEL")] - #[allow(dead_code)] - struct Channel(std::marker::PhantomData); + #[specta(remote = super::Channel)] + #[allow(dead_code, non_camel_case_types)] + struct TAURI_CHANNEL(std::marker::PhantomData); }; impl Clone for Channel {