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