#![cfg(feature = "serde")] use serde::{Deserialize, Serialize}; use winit::{ dpi::{LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize}, event::{ElementState, MouseButton, MouseScrollDelta, TouchPhase}, keyboard::{Key, KeyCode, KeyLocation, ModifiersState, NamedKey, PhysicalKey}, window::CursorIcon, }; #[allow(dead_code)] fn needs_serde>() {} #[test] fn window_serde() { needs_serde::(); } #[test] fn events_serde() { needs_serde::(); needs_serde::(); needs_serde::(); needs_serde::(); needs_serde::(); needs_serde::(); needs_serde::(); needs_serde::(); needs_serde::(); needs_serde::(); } #[test] fn dpi_serde() { needs_serde::>(); needs_serde::>(); needs_serde::>(); needs_serde::>(); needs_serde::>(); }