From 792111de55b19d4c5aeb7373d544d1c5f77b7d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nazari=CC=81=20Gonza=CC=81lez?= Date: Mon, 19 Feb 2024 17:03:19 +0000 Subject: [PATCH] WindowID is serializable --- crates/notan_core/src/window.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/notan_core/src/window.rs b/crates/notan_core/src/window.rs index ee66837a..421246e6 100644 --- a/crates/notan_core/src/window.rs +++ b/crates/notan_core/src/window.rs @@ -1,6 +1,7 @@ use raw_window_handle::{HasDisplayHandle, HasWindowHandle}; #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct WindowId(u64); impl From for WindowId {