#![cfg(feature = "serde")] use serde::{Deserialize, Serialize}; use winit::dpi::{LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize}; use winit::event::{ElementState, MouseButton, MouseScrollDelta, TouchPhase}; use winit::keyboard::{Key, KeyCode, KeyLocation, ModifiersState, NamedKey, PhysicalKey}; use winit::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::>(); }