[package]
edition = "2021"
rust-version = "1.65.0"
name = "floem-winit"
version = "0.29.5"
authors = [
"The winit contributors",
"Pierre Krieger <pierre.krieger1708@gmail.com>",
]
build = "build.rs"
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial winit fork for Floem"
documentation = "https://docs.rs/winit"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/lapce/winit"
[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"
features = [
"rwh_04",
"rwh_05",
"rwh_06",
"serde",
"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",
]
[lib]
name = "floem_winit"
path = "src/lib.rs"
[[example]]
name = "child_window"
path = "examples/child_window.rs"
[[example]]
name = "control_flow"
path = "examples/control_flow.rs"
[[example]]
name = "cursor"
path = "examples/cursor.rs"
[[example]]
name = "cursor_grab"
path = "examples/cursor_grab.rs"
[[example]]
name = "custom_events"
path = "examples/custom_events.rs"
[[example]]
name = "drag_window"
path = "examples/drag_window.rs"
[[example]]
name = "focus"
path = "examples/focus.rs"
[[example]]
name = "fullscreen"
path = "examples/fullscreen.rs"
[[example]]
name = "handling_close"
path = "examples/handling_close.rs"
[[example]]
name = "ime"
path = "examples/ime.rs"
[[example]]
name = "key_binding"
path = "examples/key_binding.rs"
[[example]]
name = "monitor_list"
path = "examples/monitor_list.rs"
[[example]]
name = "mouse_wheel"
path = "examples/mouse_wheel.rs"
[[example]]
name = "multithreaded"
path = "examples/multithreaded.rs"
[[example]]
name = "multiwindow"
path = "examples/multiwindow.rs"
[[example]]
name = "request_redraw"
path = "examples/request_redraw.rs"
[[example]]
name = "request_redraw_threaded"
path = "examples/request_redraw_threaded.rs"
[[example]]
name = "resizable"
path = "examples/resizable.rs"
[[example]]
name = "startup_notification"
path = "examples/startup_notification.rs"
[[example]]
name = "theme"
path = "examples/theme.rs"
[[example]]
name = "timer"
path = "examples/timer.rs"
[[example]]
name = "touchpad_gestures"
path = "examples/touchpad_gestures.rs"
[[example]]
name = "transparent"
path = "examples/transparent.rs"
[[example]]
name = "video_modes"
path = "examples/video_modes.rs"
[[example]]
name = "web"
path = "examples/web.rs"
[[example]]
name = "web_aspect_ratio"
path = "examples/web_aspect_ratio.rs"
[[example]]
name = "window"
path = "examples/window.rs"
[[example]]
name = "window_buttons"
path = "examples/window_buttons.rs"
[[example]]
name = "window_debug"
path = "examples/window_debug.rs"
[[example]]
name = "window_drag_resize"
path = "examples/window_drag_resize.rs"
[[example]]
name = "window_icon"
path = "examples/window_icon.rs"
[[example]]
name = "window_on_demand"
path = "examples/window_on_demand.rs"
[[example]]
name = "window_option_as_alt"
path = "examples/window_option_as_alt.rs"
[[example]]
name = "window_pump_events"
path = "examples/window_pump_events.rs"
[[example]]
name = "window_resize_increments"
path = "examples/window_resize_increments.rs"
[[example]]
name = "window_tabbing"
path = "examples/window_tabbing.rs"
[[example]]
name = "x11_embed"
path = "examples/x11_embed.rs"
[[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"
[dependencies.bitflags]
version = "2"
[dependencies.cursor-icon]
version = "1.1.0"
[dependencies.log]
version = "0.4"
[dependencies.mint]
version = "0.5.6"
optional = true
[dependencies.once_cell]
version = "1.12"
[dependencies.rwh_04]
version = "0.4"
optional = true
package = "raw-window-handle"
[dependencies.rwh_05]
version = "0.5"
features = ["std"]
optional = true
package = "raw-window-handle"
[dependencies.rwh_06]
version = "0.6"
features = ["std"]
optional = true
package = "raw-window-handle"
[dependencies.serde]
version = "1"
features = ["serde_derive"]
optional = true
[dependencies.smol_str]
version = "0.2.0"
[dev-dependencies.image]
version = "0.24.0"
features = ["png"]
default-features = false
[dev-dependencies.simple_logger]
version = "4.2.0"
default_features = false
[build-dependencies.cfg_aliases]
version = "0.1.1"
[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",
]
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",
]
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",
]
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.ahash]
version = "0.8.3"
features = ["no-rng"]
optional = true
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.bytemuck]
version = "1.13.1"
optional = true
default-features = false
[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.12.3"
[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]
version = "0.9.0"
optional = true
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.percent-encoding]
version = "2.0"
optional = true
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.rustix]
version = "0.38.4"
features = [
"std",
"system",
"thread",
"process",
]
default-features = false
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.sctk]
version = "0.18.0"
features = ["calloop"]
optional = true
default-features = false
package = "smithay-client-toolkit"
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.sctk-adwaita]
version = "0.7.0"
optional = true
default_features = false
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.wayland-backend]
version = "0.3.0"
features = ["client_system"]
optional = true
default_features = false
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.wayland-client]
version = "0.31.1"
optional = true
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.wayland-protocols]
version = "0.31.0"
features = ["staging"]
optional = true
[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]
version = "0.2.0"
features = ["client"]
optional = true
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.x11-dl]
version = "2.18.5"
optional = true
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies.x11rb]
version = "0.13.0"
features = [
"allow-unsafe-code",
"dl-libxcb",
"randr",
"resource_manager",
"xinput",
"xkb",
]
optional = true
default-features = false
[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.0"
[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.4.1"
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dev-dependencies.softbuffer]
version = "0.3.0"
[target.'cfg(target_family = "wasm")'.dependencies.atomic-waker]
version = "1"
[target.'cfg(target_family = "wasm")'.dependencies.js-sys]
version = "0.3.64"
[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]
version = "0.3.64"
features = [
"AbortController",
"AbortSignal",
"console",
"CssStyleDeclaration",
"Document",
"DomRect",
"DomRectReadOnly",
"Element",
"Event",
"EventTarget",
"FocusEvent",
"HtmlCanvasElement",
"HtmlElement",
"IntersectionObserver",
"IntersectionObserverEntry",
"KeyboardEvent",
"MediaQueryList",
"MessageChannel",
"MessagePort",
"Node",
"PageTransitionEvent",
"PointerEvent",
"ResizeObserver",
"ResizeObserverBoxOptions",
"ResizeObserverEntry",
"ResizeObserverOptions",
"ResizeObserverSize",
"VisibilityState",
"Window",
"WheelEvent",
]
package = "web-sys"
[target.'cfg(target_family = "wasm")'.dev-dependencies.console_log]
version = "1"
[target.'cfg(target_family = "wasm")'.dev-dependencies.web-sys]
version = "0.3.22"
features = ["CanvasRenderingContext2d"]
[target.'cfg(target_os = "android")'.dependencies.android-activity]
version = "0.5.0"
[target.'cfg(target_os = "android")'.dependencies.ndk]
version = "0.8.0"
default-features = false
[target.'cfg(target_os = "android")'.dependencies.ndk-sys]
version = "0.5.0"
[target.'cfg(target_os = "ios")'.dependencies.icrate]
version = "0.0.4"
features = [
"dispatch",
"Foundation",
"Foundation_NSArray",
"Foundation_NSString",
"Foundation_NSProcessInfo",
"Foundation_NSThread",
"Foundation_NSSet",
]
[target.'cfg(target_os = "macos")'.dependencies.core-graphics]
version = "0.23.1"
[target.'cfg(target_os = "macos")'.dependencies.icrate]
version = "0.0.4"
features = [
"dispatch",
"Foundation",
"Foundation_NSArray",
"Foundation_NSAttributedString",
"Foundation_NSMutableAttributedString",
"Foundation_NSData",
"Foundation_NSDictionary",
"Foundation_NSString",
"Foundation_NSProcessInfo",
"Foundation_NSThread",
"Foundation_NSNumber",
]
[target.'cfg(target_os = "redox")'.dependencies.orbclient]
version = "0.3.42"
default-features = false
[target.'cfg(target_os = "redox")'.dependencies.redox_syscall]
version = "0.3"
[target.'cfg(target_os = "windows")'.dependencies.unicode-segmentation]
version = "1.7.1"
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.48"
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",
]