#![cfg(feature = "serde")] extern crate serde; extern crate winit; use winit::window::{CursorIcon}; use winit::event::{ KeyboardInput, TouchPhase, ElementState, MouseButton, MouseScrollDelta, VirtualKeyCode, ModifiersState }; use winit::dpi::{LogicalPosition, PhysicalPosition, LogicalSize, PhysicalSize}; use serde::{Serialize, Deserialize}; 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::(); } #[test] fn dpi_serde() { needs_serde::(); needs_serde::(); needs_serde::(); needs_serde::(); }