[package] name = "winit" version = "0.25.0" authors = ["The winit contributors", "Pierre Krieger "] description = "Cross-platform window creation library." edition = "2018" keywords = ["windowing"] license = "Apache-2.0" readme = "README.md" repository = "https://github.com/rust-windowing/winit" documentation = "https://docs.rs/winit" categories = ["gui"] [package.metadata.docs.rs] features = ["serde"] default-target = "x86_64-unknown-linux-gnu" targets = ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc", "i686-unknown-linux-gnu", "x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "wasm32-unknown-unknown"] [features] default = ["x11", "wayland", "wayland-dlopen"] x11 = ["x11-dl", "mio", "percent-encoding", "parking_lot"] wayland = ["wayland-client", "wayland-protocols", "sctk"] wayland-dlopen = ["sctk/dlopen", "wayland-client/dlopen"] [dependencies] instant = { version = "0.1", features = ["wasm-bindgen"] } lazy_static = "1" log = "0.4" serde = { version = "1", optional = true, features = ["serde_derive"] } raw-window-handle = "0.4.2" bitflags = "1" mint = { version = "0.5.6", optional = true } [dev-dependencies] image = "0.23.12" simple_logger = "1.9" [target.'cfg(target_os = "android")'.dependencies] ndk = "0.5" ndk-sys = "0.2.0" ndk-glue = "0.5" [target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies] objc = "0.2.7" [target.'cfg(target_os = "macos")'.dependencies] cocoa = "0.24" core-foundation = "0.9" core-graphics = "0.22" dispatch = "0.2.0" block = "0.1" [target.'cfg(target_os = "macos")'.dependencies.core-video-sys] version = "0.1.4" default_features = false features = ["display_link"] [target.'cfg(target_os = "windows")'.dependencies] parking_lot = "0.11" [target.'cfg(target_os = "windows")'.dependencies.winapi] version = "0.3.9" features = [ "combaseapi", "commctrl", "dwmapi", "errhandlingapi", "imm", "hidusage", "libloaderapi", "objbase", "ole2", "processthreadsapi", "shellapi", "shellscalingapi", "shobjidl_core", "unknwnbase", "winbase", "windowsx", "winerror", "wingdi", "winnt", "winuser", "mmsystem", "timeapi" ] [target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies] wayland-client = { version = "0.29", default_features = false, features = ["use_system_lib"], optional = true } wayland-protocols = { version = "0.29", features = [ "staging_protocols"], optional = true } sctk = { package = "smithay-client-toolkit", version = "0.15.1", default_features = false, features = ["calloop"], optional = true } mio = { version = "0.8", features = ["os-ext"], optional = true } x11-dl = { version = "2.18.5", optional = true } percent-encoding = { version = "2.0", optional = true } parking_lot = { version = "0.11.0", optional = true } libc = "0.2.64" [target.'cfg(target_arch = "wasm32")'.dependencies.web_sys] package = "web-sys" version = "0.3.22" features = [ 'console', "AddEventListenerOptions", 'CssStyleDeclaration', 'BeforeUnloadEvent', 'Document', 'DomRect', 'Element', 'Event', 'EventTarget', 'FocusEvent', 'HtmlCanvasElement', 'HtmlElement', 'KeyboardEvent', 'MediaQueryList', 'MediaQueryListEvent', 'MouseEvent', 'Node', 'PointerEvent', 'Window', 'WheelEvent' ] [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen] version = "0.2.45" [target.'cfg(target_arch = "wasm32")'.dev-dependencies] console_log = "0.2"