2014-07-27 18:55:37 +10:00
|
|
|
[package]
|
2016-02-23 22:56:23 +11:00
|
|
|
name = "winit"
|
2023-07-01 06:10:02 +10:00
|
|
|
version = "0.29.0-beta.0"
|
2018-09-11 14:23:48 +10:00
|
|
|
authors = ["The winit contributors", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
2016-02-23 22:56:23 +11:00
|
|
|
description = "Cross-platform window creation library."
|
2022-01-13 16:59:57 +11:00
|
|
|
edition = "2021"
|
2016-02-23 22:56:23 +11:00
|
|
|
keywords = ["windowing"]
|
2014-11-13 19:01:30 +11:00
|
|
|
license = "Apache-2.0"
|
2014-11-14 18:54:04 +11:00
|
|
|
readme = "README.md"
|
2019-06-23 16:39:26 +10:00
|
|
|
repository = "https://github.com/rust-windowing/winit"
|
2016-09-20 02:53:28 +10:00
|
|
|
documentation = "https://docs.rs/winit"
|
2017-01-31 20:01:36 +11:00
|
|
|
categories = ["gui"]
|
2023-03-09 03:34:10 +11:00
|
|
|
rust-version = "1.64.0"
|
2014-07-27 18:55:37 +10:00
|
|
|
|
2018-05-12 00:33:06 +10:00
|
|
|
[package.metadata.docs.rs]
|
2021-05-25 03:06:21 +10:00
|
|
|
features = ["serde"]
|
2020-04-20 05:37:13 +10:00
|
|
|
default-target = "x86_64-unknown-linux-gnu"
|
2022-06-11 08:45:24 +10:00
|
|
|
# These are all tested in CI
|
|
|
|
targets = [
|
|
|
|
# Windows
|
|
|
|
"i686-pc-windows-msvc",
|
|
|
|
"x86_64-pc-windows-msvc",
|
|
|
|
# macOS
|
|
|
|
"x86_64-apple-darwin",
|
|
|
|
# Unix (X11 & Wayland)
|
|
|
|
"i686-unknown-linux-gnu",
|
|
|
|
"x86_64-unknown-linux-gnu",
|
|
|
|
# iOS
|
|
|
|
"x86_64-apple-ios",
|
|
|
|
# Android
|
|
|
|
"aarch64-linux-android",
|
|
|
|
# WebAssembly
|
|
|
|
"wasm32-unknown-unknown",
|
|
|
|
]
|
2022-10-25 09:02:52 +11:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2018-05-08 07:36:21 +10:00
|
|
|
|
2019-06-27 08:02:46 +10:00
|
|
|
[features]
|
2022-05-20 10:09:23 +10:00
|
|
|
default = ["x11", "wayland", "wayland-dlopen", "wayland-csd-adwaita"]
|
2023-07-22 19:32:27 +10:00
|
|
|
x11 = ["x11-dl", "bytemuck", "percent-encoding", "xkbcommon-dl/x11", "x11rb"]
|
2023-05-29 04:02:59 +10:00
|
|
|
wayland = ["wayland-client", "wayland-backend", "wayland-protocols", "sctk", "fnv", "memmap2"]
|
2023-04-19 07:56:29 +10:00
|
|
|
wayland-dlopen = ["wayland-backend/dlopen"]
|
2022-08-24 22:24:29 +10:00
|
|
|
wayland-csd-adwaita = ["sctk-adwaita", "sctk-adwaita/ab_glyph"]
|
|
|
|
wayland-csd-adwaita-crossfont = ["sctk-adwaita", "sctk-adwaita/crossfont"]
|
2022-05-20 10:09:23 +10:00
|
|
|
wayland-csd-adwaita-notitle = ["sctk-adwaita"]
|
2023-04-19 07:56:29 +10:00
|
|
|
android-native-activity = ["android-activity/native-activity"]
|
|
|
|
android-game-activity = ["android-activity/game-activity"]
|
2023-05-29 04:02:59 +10:00
|
|
|
serde = ["dep:serde", "cursor-icon/serde", "smol_str/serde"]
|
2019-06-27 08:02:46 +10:00
|
|
|
|
2022-12-25 18:57:27 +11:00
|
|
|
[build-dependencies]
|
|
|
|
cfg_aliases = "0.1.1"
|
|
|
|
|
2015-02-06 19:21:55 +11:00
|
|
|
[dependencies]
|
2023-06-03 00:44:36 +10:00
|
|
|
bitflags = "2"
|
2023-05-10 03:19:35 +10:00
|
|
|
cursor-icon = "1.0.0"
|
2018-07-02 01:01:46 +10:00
|
|
|
log = "0.4"
|
2021-05-09 08:56:52 +10:00
|
|
|
mint = { version = "0.5.6", optional = true }
|
2023-01-06 21:26:57 +11:00
|
|
|
once_cell = "1.12"
|
2023-07-20 23:16:51 +10:00
|
|
|
raw_window_handle = { package = "raw-window-handle", version = "0.5", features = ["std"] }
|
2023-01-06 21:26:57 +11:00
|
|
|
serde = { version = "1", optional = true, features = ["serde_derive"] }
|
2023-05-29 04:02:59 +10:00
|
|
|
smol_str = "0.2.0"
|
2014-10-04 23:49:39 +10:00
|
|
|
|
2019-02-24 12:59:00 +11:00
|
|
|
[dev-dependencies]
|
2022-02-18 00:13:32 +11:00
|
|
|
image = { version = "0.24.0", default-features = false, features = ["png"] }
|
2022-08-29 07:26:51 +10:00
|
|
|
simple_logger = { version = "2.1.0", default_features = false }
|
2019-02-24 12:59:00 +11:00
|
|
|
|
2023-06-20 04:46:38 +10:00
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dev-dependencies]
|
|
|
|
softbuffer = "0.3.0"
|
|
|
|
|
2020-05-06 23:27:49 +10:00
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
2023-08-08 08:56:42 +10:00
|
|
|
# Coordinate the next winit release android-activity 0.5 release
|
|
|
|
android-activity = { git = "https://github.com/rust-mobile/android-activity" }
|
2023-01-06 21:26:57 +11:00
|
|
|
ndk = "0.7.0"
|
2023-05-29 04:02:59 +10:00
|
|
|
ndk-sys = "0.4.0"
|
2015-01-01 09:10:29 +11:00
|
|
|
|
2020-10-18 10:05:08 +11:00
|
|
|
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
|
2022-09-09 05:03:25 +10:00
|
|
|
core-foundation = "0.9.3"
|
2023-08-03 00:30:41 +10:00
|
|
|
objc2 = "0.4.1"
|
2015-09-22 02:57:35 +10:00
|
|
|
|
2016-05-03 07:58:52 +10:00
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
2022-09-09 00:45:29 +10:00
|
|
|
core-graphics = "0.22.3"
|
2020-01-20 05:47:55 +11:00
|
|
|
dispatch = "0.2.0"
|
2015-01-10 20:56:47 +11:00
|
|
|
|
2023-07-29 08:33:03 +10:00
|
|
|
[target.'cfg(target_os = "macos")'.dependencies.icrate]
|
2023-08-03 00:30:41 +10:00
|
|
|
version = "0.0.4"
|
2023-07-29 08:33:03 +10:00
|
|
|
features = [
|
|
|
|
"Foundation",
|
|
|
|
"Foundation_NSArray",
|
|
|
|
"Foundation_NSAttributedString",
|
|
|
|
"Foundation_NSMutableAttributedString",
|
|
|
|
"Foundation_NSData",
|
|
|
|
"Foundation_NSDictionary",
|
|
|
|
"Foundation_NSString",
|
|
|
|
"Foundation_NSProcessInfo",
|
|
|
|
"Foundation_NSThread",
|
|
|
|
"Foundation_NSNumber",
|
|
|
|
]
|
|
|
|
|
|
|
|
[target.'cfg(target_os = "ios")'.dependencies.icrate]
|
2023-08-03 00:30:41 +10:00
|
|
|
version = "0.0.4"
|
2023-07-29 08:33:03 +10:00
|
|
|
features = [
|
|
|
|
"Foundation",
|
|
|
|
"Foundation_NSArray",
|
|
|
|
"Foundation_NSString",
|
|
|
|
"Foundation_NSProcessInfo",
|
|
|
|
"Foundation_NSThread",
|
|
|
|
"Foundation_NSSet",
|
|
|
|
]
|
|
|
|
|
2023-05-29 04:02:59 +10:00
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
|
|
unicode-segmentation = "1.7.1"
|
|
|
|
|
2022-03-08 08:58:12 +11:00
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
|
2023-06-04 08:02:37 +10:00
|
|
|
version = "0.48"
|
2017-12-25 00:46:47 +11:00
|
|
|
features = [
|
2022-03-08 08:58:12 +11:00
|
|
|
"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",
|
2017-12-25 00:46:47 +11:00
|
|
|
]
|
2015-08-22 01:49:10 +10:00
|
|
|
|
2023-03-17 06:49:59 +11:00
|
|
|
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies]
|
2023-07-12 17:59:12 +10:00
|
|
|
bytemuck = { version = "1.13.1", default-features = false, optional = true }
|
2023-01-06 21:26:57 +11:00
|
|
|
libc = "0.2.64"
|
|
|
|
percent-encoding = { version = "2.0", optional = true }
|
2023-04-19 07:56:29 +10:00
|
|
|
fnv = { version = "1.0.3", optional = true }
|
2023-05-29 04:02:59 +10:00
|
|
|
sctk = { package = "smithay-client-toolkit", version = "0.17.0", default-features = false, features = ["calloop"], optional = true }
|
2023-04-19 07:56:29 +10:00
|
|
|
sctk-adwaita = { version = "0.6.0", default_features = false, optional = true }
|
|
|
|
wayland-client = { version = "0.30.0", optional = true }
|
|
|
|
wayland-backend = { version = "0.1.0", default_features = false, features = ["client_system"], optional = true }
|
|
|
|
wayland-protocols = { version = "0.30.0", features = [ "staging"], optional = true }
|
|
|
|
calloop = "0.10.5"
|
2023-07-22 19:32:27 +10:00
|
|
|
rustix = { version = "0.38.4", default-features = false, features = ["std", "system", "thread", "process"] }
|
2020-06-15 17:15:27 +10:00
|
|
|
x11-dl = { version = "2.18.5", optional = true }
|
2023-07-12 17:59:12 +10:00
|
|
|
x11rb = { version = "0.12.0", default-features = false, features = ["allow-unsafe-code", "dl-libxcb", "xinput", "xkb"], optional = true }
|
2023-06-28 08:01:11 +10:00
|
|
|
xkbcommon-dl = "0.4.0"
|
2023-05-29 04:02:59 +10:00
|
|
|
memmap2 = { version = "0.5.0", optional = true }
|
2019-02-13 12:47:31 +11:00
|
|
|
|
2023-01-06 00:58:08 +11:00
|
|
|
[target.'cfg(target_os = "redox")'.dependencies]
|
|
|
|
orbclient = { version = "0.3.42", default-features = false }
|
|
|
|
redox_syscall = "0.3"
|
|
|
|
|
2023-03-17 06:49:59 +11:00
|
|
|
[target.'cfg(target_family = "wasm")'.dependencies.web_sys]
|
2019-07-02 04:43:54 +10:00
|
|
|
package = "web-sys"
|
2023-06-14 17:43:53 +10:00
|
|
|
version = "0.3.64"
|
2019-06-04 15:51:01 +10:00
|
|
|
features = [
|
2019-06-06 15:58:11 +10:00
|
|
|
'console',
|
2020-01-01 09:39:33 +11:00
|
|
|
'CssStyleDeclaration',
|
2019-06-04 15:51:01 +10:00
|
|
|
'Document',
|
2019-06-05 16:08:09 +10:00
|
|
|
'DomRect',
|
2023-06-14 17:43:53 +10:00
|
|
|
'DomRectReadOnly',
|
2019-06-05 16:08:09 +10:00
|
|
|
'Element',
|
2019-06-04 15:51:01 +10:00
|
|
|
'Event',
|
|
|
|
'EventTarget',
|
|
|
|
'FocusEvent',
|
|
|
|
'HtmlCanvasElement',
|
2019-06-05 16:08:09 +10:00
|
|
|
'HtmlElement',
|
2023-07-10 10:02:38 +10:00
|
|
|
'IntersectionObserver',
|
|
|
|
'IntersectionObserverEntry',
|
2019-06-04 15:51:01 +10:00
|
|
|
'KeyboardEvent',
|
2020-02-18 06:25:27 +11:00
|
|
|
'MediaQueryList',
|
2019-06-05 16:08:09 +10:00
|
|
|
'Node',
|
2023-06-28 20:54:21 +10:00
|
|
|
'PageTransitionEvent',
|
2019-06-04 15:51:01 +10:00
|
|
|
'PointerEvent',
|
2023-06-14 17:43:53 +10:00
|
|
|
'ResizeObserver',
|
|
|
|
'ResizeObserverBoxOptions',
|
|
|
|
'ResizeObserverEntry',
|
|
|
|
'ResizeObserverOptions',
|
|
|
|
'ResizeObserverSize',
|
2023-07-10 10:02:38 +10:00
|
|
|
'VisibilityState',
|
2019-06-04 15:51:01 +10:00
|
|
|
'Window',
|
|
|
|
'WheelEvent'
|
|
|
|
]
|
|
|
|
|
2023-03-27 02:19:26 +11:00
|
|
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
2023-06-05 10:44:54 +10:00
|
|
|
atomic-waker = "1"
|
2023-06-13 23:49:27 +10:00
|
|
|
js-sys = "0.3.64"
|
|
|
|
wasm-bindgen = "0.2"
|
2023-03-27 02:19:26 +11:00
|
|
|
wasm-bindgen-futures = "0.4"
|
2023-06-02 01:22:28 +10:00
|
|
|
web-time = "0.2"
|
2019-12-04 04:16:06 +11:00
|
|
|
|
2023-03-17 06:49:59 +11:00
|
|
|
[target.'cfg(target_family = "wasm")'.dev-dependencies]
|
2023-06-02 01:01:59 +10:00
|
|
|
console_log = "1"
|
2022-09-04 02:26:24 +10:00
|
|
|
web-sys = { version = "0.3.22", features = ['CanvasRenderingContext2d'] }
|
2022-02-25 22:57:46 +11:00
|
|
|
|
|
|
|
[workspace]
|
|
|
|
members = [
|
|
|
|
"run-wasm",
|
|
|
|
]
|