winit-sonoma-fix/Cargo.toml

161 lines
4.9 KiB
TOML
Raw Normal View History

2014-07-27 18:55:37 +10:00
[package]
name = "winit"
version = "0.28.3"
2018-09-11 14:23:48 +10:00
authors = ["The winit contributors", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "Cross-platform window creation library."
2022-01-13 16:59:57 +11:00
edition = "2021"
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"
repository = "https://github.com/rust-windowing/winit"
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
[package.metadata.docs.rs]
features = ["serde"]
2020-04-20 05:37:13 +10:00
default-target = "x86_64-unknown-linux-gnu"
# 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",
]
rustdoc-args = ["--cfg", "docsrs"]
2018-05-08 07:36:21 +10:00
[features]
default = ["x11", "wayland", "wayland-dlopen", "wayland-csd-adwaita"]
2022-09-01 02:32:19 +10:00
x11 = ["x11-dl", "mio", "percent-encoding"]
wayland = ["wayland-client", "wayland-backend", "wayland-protocols", "sctk", "fnv"]
wayland-dlopen = ["wayland-backend/dlopen"]
wayland-csd-adwaita = ["sctk-adwaita", "sctk-adwaita/ab_glyph"]
wayland-csd-adwaita-crossfont = ["sctk-adwaita", "sctk-adwaita/crossfont"]
wayland-csd-adwaita-notitle = ["sctk-adwaita"]
android-native-activity = ["android-activity/native-activity"]
android-game-activity = ["android-activity/game-activity"]
[build-dependencies]
cfg_aliases = "0.1.1"
2015-02-06 19:21:55 +11:00
[dependencies]
bitflags = "1"
instant = { version = "0.1", features = ["wasm-bindgen"] }
log = "0.4"
mint = { version = "0.5.6", optional = true }
once_cell = "1.12"
raw_window_handle = { package = "raw-window-handle", version = "0.5" }
serde = { version = "1", optional = true, features = ["serde_derive"] }
2019-02-24 12:59:00 +11:00
[dev-dependencies]
image = { version = "0.24.0", default-features = false, features = ["png"] }
simple_logger = { version = "2.1.0", default_features = false }
2019-02-24 12:59:00 +11:00
[target.'cfg(target_os = "android")'.dependencies]
# Coordinate the next winit release with android-ndk-rs: https://github.com/rust-windowing/winit/issues/1995
android-activity = "0.4.0"
ndk = "0.7.0"
2015-01-01 09:10:29 +11:00
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
core-foundation = "0.9.3"
objc2 = ">=0.3.0-beta.3, <0.3.0-beta.4" # Allow `0.3.0-beta.3.patch-leaks`
2015-09-22 02:57:35 +10:00
[target.'cfg(target_os = "macos")'.dependencies]
core-graphics = "0.22.3"
dispatch = "0.2.0"
2015-01-10 20:56:47 +11:00
2022-03-08 08:58:12 +11:00
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.45"
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",
]
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]
libc = "0.2.64"
mio = { version = "0.8", features = ["os-ext"], optional = true }
percent-encoding = { version = "2.0", optional = true }
fnv = { version = "1.0.3", optional = true }
sctk = { package = "smithay-client-toolkit", version = "0.17.0", optional = true }
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"
x11-dl = { version = "2.18.5", optional = true }
[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]
package = "web-sys"
2019-06-04 15:51:01 +10:00
version = "0.3.22"
features = [
2019-06-06 15:58:11 +10:00
'console',
"AddEventListenerOptions",
'CssStyleDeclaration',
'BeforeUnloadEvent',
2019-06-04 15:51:01 +10:00
'Document',
2019-06-05 16:08:09 +10:00
'DomRect',
'Element',
2019-06-04 15:51:01 +10:00
'Event',
"EventListenerOptions",
2019-06-04 15:51:01 +10:00
'EventTarget',
'FocusEvent',
'HtmlCanvasElement',
2019-06-05 16:08:09 +10:00
'HtmlElement',
2019-06-04 15:51:01 +10:00
'KeyboardEvent',
'MediaQueryList',
'MediaQueryListEvent',
2019-06-04 15:51:01 +10:00
'MouseEvent',
2019-06-05 16:08:09 +10:00
'Node',
2019-06-04 15:51:01 +10:00
'PointerEvent',
'Window',
'WheelEvent'
]
2023-03-17 06:49:59 +11:00
[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen]
2019-06-04 15:51:01 +10:00
version = "0.2.45"
2023-03-17 06:49:59 +11:00
[target.'cfg(target_family = "wasm")'.dev-dependencies]
2020-09-28 00:47:47 +10:00
console_log = "0.2"
web-sys = { version = "0.3.22", features = ['CanvasRenderingContext2d'] }
[workspace]
members = [
"run-wasm",
]