winit 0.30.5

Cross-platform window creation library.
Documentation
[build-dependencies.cfg_aliases]
version = "0.2.1"

[dependencies.bitflags]
version = "2"

[dependencies.cursor-icon]
version = "1.1.0"

[dependencies.dpi]
version = "0.1.1"

[dependencies.rwh_04]
optional = true
package = "raw-window-handle"
version = "0.4"

[dependencies.rwh_05]
features = ["std"]
optional = true
package = "raw-window-handle"
version = "0.5.2"

[dependencies.rwh_06]
features = ["std"]
optional = true
package = "raw-window-handle"
version = "0.6"

[dependencies.serde]
features = ["serde_derive"]
optional = true
version = "1"

[dependencies.smol_str]
version = "0.2.0"

[dependencies.tracing]
default-features = false
version = "0.1.40"

[dev-dependencies.image]
default-features = false
features = ["png"]
version = "0.25.0"

[dev-dependencies.tracing]
default-features = false
features = ["log"]
version = "0.1.40"

[dev-dependencies.tracing-subscriber]
features = ["env-filter"]
version = "0.3.18"

[[example]]
name = "child_window"
path = "examples/child_window.rs"

[[example]]
name = "control_flow"
path = "examples/control_flow.rs"

[[example]]
name = "pump_events"
path = "examples/pump_events.rs"

[[example]]
name = "run_on_demand"
path = "examples/run_on_demand.rs"

[[example]]
doc-scrape-examples = true
name = "window"
path = "examples/window.rs"

[[example]]
name = "x11_embed"
path = "examples/x11_embed.rs"

[features]
android-game-activity = ["android-activity/game-activity"]
android-native-activity = ["android-activity/native-activity"]
default = ["rwh_06", "x11", "wayland", "wayland-dlopen", "wayland-csd-adwaita"]
mint = ["dpi/mint"]
rwh_04 = ["dep:rwh_04", "ndk/rwh_04"]
rwh_05 = ["dep:rwh_05", "ndk/rwh_05"]
rwh_06 = ["dep:rwh_06", "ndk/rwh_06"]
serde = ["dep:serde", "cursor-icon/serde", "smol_str/serde", "dpi/serde"]
wayland = ["wayland-client", "wayland-backend", "wayland-protocols", "wayland-protocols-plasma", "sctk", "ahash", "memmap2"]
wayland-csd-adwaita = ["sctk-adwaita", "sctk-adwaita/ab_glyph"]
wayland-csd-adwaita-crossfont = ["sctk-adwaita", "sctk-adwaita/crossfont"]
wayland-csd-adwaita-notitle = ["sctk-adwaita"]
wayland-dlopen = ["wayland-backend/dlopen"]
x11 = ["x11-dl", "bytemuck", "percent-encoding", "xkbcommon-dl/x11", "x11rb"]

[lib]
name = "winit"
path = "src/lib.rs"

[package]
authors = ["The winit contributors", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = "build.rs"
categories = ["gui"]
description = "Cross-platform window creation library."
documentation = "https://docs.rs/winit"
edition = "2021"
exclude = ["/.cargo"]
keywords = ["windowing"]
license = "Apache-2.0"
name = "winit"
readme = "README.md"
repository = "https://github.com/rust-windowing/winit"
rust-version = "1.70.0"
version = "0.30.5"

[package.metadata.docs.rs]
features = ["rwh_04", "rwh_05", "rwh_06", "serde", "mint", "android-native-activity"]
rustdoc-args = ["--cfg", "docsrs"]
targets = ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc", "x86_64-apple-darwin", "i686-unknown-linux-gnu", "x86_64-unknown-linux-gnu", "x86_64-apple-ios", "aarch64-linux-android", "wasm32-unknown-unknown"]

[target.'cfg(all(target_family = "wasm", target_feature = "atomics"))'.dependencies.atomic-waker]
version = "1"

[target.'cfg(all(target_family = "wasm", target_feature = "atomics"))'.dependencies.concurrent-queue]
default-features = false
version = "2"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.ahash]
features = ["no-rng"]
optional = true
version = "0.8.7"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.bytemuck]
default-features = false
optional = true
version = "1.13.1"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.calloop]
version = "0.13.0"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.libc]
version = "0.2.64"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.memmap2]
optional = true
version = "0.9.0"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.percent-encoding]
optional = true
version = "2.0"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.rustix]
default-features = false
features = ["std", "system", "thread", "process"]
version = "0.38.4"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.sctk]
default-features = false
features = ["calloop"]
optional = true
package = "smithay-client-toolkit"
version = "0.19.2"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.sctk-adwaita]
default-features = false
optional = true
version = "0.10.1"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.wayland-backend]
default-features = false
features = ["client_system"]
optional = true
version = "0.3.5"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.wayland-client]
optional = true
version = "0.31.4"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.wayland-protocols]
features = ["staging"]
optional = true
version = "0.32.2"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.wayland-protocols-plasma]
features = ["client"]
optional = true
version = "0.3.2"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.x11-dl]
optional = true
version = "2.19.1"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.x11rb]
default-features = false
features = ["allow-unsafe-code", "dl-libxcb", "randr", "resource_manager", "xinput", "xkb"]
optional = true
version = "0.13.0"

[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.xkbcommon-dl]
version = "0.4.2"

[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.core-foundation]
version = "0.9.3"

[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.objc2]
version = "0.5.2"

[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dev-dependencies.softbuffer]
default-features = false
features = ["x11", "x11-dlopen", "wayland", "wayland-dlopen"]
version = "0.4.0"

[target.'cfg(target_family = "wasm")'.dependencies.js-sys]
version = "0.3.64"

[target.'cfg(target_family = "wasm")'.dependencies.pin-project]
version = "1"

[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen-futures]
version = "0.4"

[target.'cfg(target_family = "wasm")'.dependencies.web-time]
version = "1"

[target.'cfg(target_family = "wasm")'.dependencies.web_sys]
features = ["AbortController", "AbortSignal", "Blob", "BlobPropertyBag", "console", "CssStyleDeclaration", "Document", "DomException", "DomRect", "DomRectReadOnly", "Element", "Event", "EventTarget", "FocusEvent", "HtmlCanvasElement", "HtmlElement", "HtmlImageElement", "ImageBitmap", "ImageBitmapOptions", "ImageBitmapRenderingContext", "ImageData", "IntersectionObserver", "IntersectionObserverEntry", "KeyboardEvent", "MediaQueryList", "MessageChannel", "MessagePort", "Navigator", "Node", "PageTransitionEvent", "PointerEvent", "PremultiplyAlpha", "ResizeObserver", "ResizeObserverBoxOptions", "ResizeObserverEntry", "ResizeObserverOptions", "ResizeObserverSize", "VisibilityState", "Window", "WheelEvent", "Worker", "Url"]
package = "web-sys"
version = "0.3.64"

[target.'cfg(target_family = "wasm")'.dev-dependencies.console_error_panic_hook]
version = "0.1"

[target.'cfg(target_family = "wasm")'.dev-dependencies.tracing-web]
version = "0.1"

[target.'cfg(target_os = "android")'.dependencies.android-activity]
version = "0.6.0"

[target.'cfg(target_os = "android")'.dependencies.ndk]
default-features = false
version = "0.9.0"

[target.'cfg(target_os = "ios")'.dependencies.objc2-foundation]
features = ["dispatch", "NSArray", "NSEnumerator", "NSGeometry", "NSObjCRuntime", "NSString", "NSProcessInfo", "NSThread", "NSSet"]
version = "0.2.2"

[target.'cfg(target_os = "ios")'.dependencies.objc2-ui-kit]
features = ["UIApplication", "UIDevice", "UIEvent", "UIGeometry", "UIGestureRecognizer", "UIOrientation", "UIPanGestureRecognizer", "UIPinchGestureRecognizer", "UIResponder", "UIRotationGestureRecognizer", "UIScreen", "UIScreenMode", "UITapGestureRecognizer", "UITouch", "UITraitCollection", "UIView", "UIViewController", "UIWindow"]
version = "0.2.2"

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.5.1"

[target.'cfg(target_os = "macos")'.dependencies.core-graphics]
version = "0.23.1"

[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
features = ["NSAppearance", "NSApplication", "NSBitmapImageRep", "NSButton", "NSColor", "NSControl", "NSCursor", "NSDragging", "NSEvent", "NSGraphics", "NSGraphicsContext", "NSImage", "NSImageRep", "NSMenu", "NSMenuItem", "NSOpenGLView", "NSPasteboard", "NSResponder", "NSRunningApplication", "NSScreen", "NSTextInputClient", "NSTextInputContext", "NSView", "NSWindow", "NSWindowScripting", "NSWindowTabGroup"]
version = "0.2.2"

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
features = ["block2", "dispatch", "NSArray", "NSAttributedString", "NSData", "NSDictionary", "NSDistributedNotificationCenter", "NSEnumerator", "NSKeyValueObserving", "NSNotification", "NSObjCRuntime", "NSPathUtilities", "NSProcessInfo", "NSRunLoop", "NSString", "NSThread", "NSValue"]
version = "0.2.2"

[target.'cfg(target_os = "redox")'.dependencies.orbclient]
default-features = false
version = "0.3.47"

[target.'cfg(target_os = "redox")'.dependencies.redox_syscall]
version = "0.4.1"

[target.'cfg(target_os = "windows")'.dependencies.unicode-segmentation]
version = "1.7.1"

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
features = ["Win32_Devices_HumanInterfaceDevice", "Win32_Foundation", "Win32_Globalization", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_Media", "Win32_System_Com_StructuredStorage", "Win32_System_Com", "Win32_System_LibraryLoader", "Win32_System_Ole", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_Accessibility", "Win32_UI_Controls", "Win32_UI_HiDpi", "Win32_UI_Input_Ime", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Input_Pointer", "Win32_UI_Input_Touch", "Win32_UI_Shell", "Win32_UI_TextServices", "Win32_UI_WindowsAndMessaging"]
version = "0.52.0"

[[test]]
name = "send_objects"
path = "tests/send_objects.rs"

[[test]]
name = "serde_objects"
path = "tests/serde_objects.rs"

[[test]]
name = "sync_object"
path = "tests/sync_object.rs"