[package]
edition = "2021"
rust-version = "1.74"
name = "tao"
version = "0.35.2"
authors = [
"Tauri Programme within The Commons Conservancy",
"The winit contributors",
]
build = false
include = [
"/README.md",
"src/**/*.rs",
"examples/**/*.rs",
"LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform window manager library."
documentation = "https://docs.rs/tao"
readme = "README.md"
keywords = ["windowing"]
categories = ["gui"]
license = "Apache-2.0"
repository = "https://github.com/tauri-apps/tao"
[package.metadata.docs.rs]
features = [
"rwh_04",
"rwh_05",
"rwh_06",
"serde",
"x11",
"dbus",
]
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",
]
[features]
dbus = ["dep:dbus"]
default = [
"rwh_06",
"x11",
"dbus",
]
rwh_04 = ["dep:rwh_04"]
rwh_05 = ["dep:rwh_05"]
rwh_06 = ["dep:rwh_06"]
serde = [
"dep:serde",
"dpi/serde",
]
x11 = [
"dep:gdkx11-sys",
"dep:x11-dl",
]
[lib]
name = "tao"
path = "src/lib.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 = "decorations"
path = "examples/decorations.rs"
[[example]]
name = "drag_window"
path = "examples/drag_window.rs"
[[example]]
name = "fullscreen"
path = "examples/fullscreen.rs"
[[example]]
name = "handling_close"
path = "examples/handling_close.rs"
[[example]]
name = "min_max_size"
path = "examples/min_max_size.rs"
[[example]]
name = "minimize"
path = "examples/minimize.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 = "overlay"
path = "examples/overlay.rs"
[[example]]
name = "parentwindow"
path = "examples/parentwindow.rs"
[[example]]
name = "progress_bar"
path = "examples/progress_bar.rs"
[[example]]
name = "reopen_event"
path = "examples/reopen_event.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 = "set_ime_position"
path = "examples/set_ime_position.rs"
[[example]]
name = "theme"
path = "examples/theme.rs"
[[example]]
name = "timer"
path = "examples/timer.rs"
[[example]]
name = "transparent"
path = "examples/transparent.rs"
[[example]]
name = "video_modes"
path = "examples/video_modes.rs"
[[example]]
name = "window"
path = "examples/window.rs"
[[example]]
name = "window_debug"
path = "examples/window_debug.rs"
[[example]]
name = "window_icon"
path = "examples/window_icon.rs"
[[example]]
name = "window_run_return"
path = "examples/window_run_return.rs"
[dependencies.bitflags]
version = "2"
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.dpi]
version = "0.1"
[dependencies.libc]
version = "0.2"
[dependencies.log]
version = "0.4"
[dependencies.once_cell]
version = "1"
[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.url]
version = "2"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.image]
version = "0.25"
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.block2]
version = "0.6"
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.objc2]
version = "0.6"
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies.dbus]
version = "0.9"
optional = true
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies.dlopen2]
version = "0.8.0"
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies.gdkwayland-sys]
version = "0.18.0"
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies.gdkx11-sys]
version = "0.18"
optional = true
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies.gtk]
version = "0.18"
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies.parking_lot]
version = "0.12"
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies.x11-dl]
version = "2.21"
optional = true
[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.21"
[target.'cfg(target_os = "android")'.dependencies.ndk]
version = "0.9"
[target.'cfg(target_os = "android")'.dependencies.ndk-sys]
version = "0.6"
[target.'cfg(target_os = "android")'.dependencies.percent-encoding]
version = "2.3"
[target.'cfg(target_os = "android")'.dependencies.tao-macros]
version = "0.1.0"
[target.'cfg(target_os = "ios")'.dependencies.objc2-foundation]
version = "0.3"
features = ["NSProcessInfo"]
default-features = false
[target.'cfg(target_os = "ios")'.dependencies.objc2-ui-kit]
version = "0.3"
features = [
"UIResponder",
"UIScene",
"UISceneOptions",
"UIOpenURLContext",
]
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.10"
[target.'cfg(target_os = "macos")'.dependencies.core-graphics]
version = "0.25"
[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3"
[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3"
features = [
"std",
"objc2-core-foundation",
"NSApplication",
"NSButton",
"NSColor",
"NSControl",
"NSEvent",
"NSGraphics",
"NSImage",
"NSOpenGLView",
"NSPasteboard",
"NSResponder",
"NSRunningApplication",
"NSScreen",
"NSView",
"NSWindow",
"NSUserActivity",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
features = [
"std",
"NSArray",
"NSAttributedString",
"NSAutoreleasePool",
"NSDate",
"NSDictionary",
"NSEnumerator",
"NSGeometry",
"NSObjCRuntime",
"NSRange",
"NSString",
"NSThread",
"NSURL",
]
default-features = false
[target.'cfg(target_os = "windows")'.dependencies.parking_lot]
version = "0.12"
[target.'cfg(target_os = "windows")'.dependencies.unicode-segmentation]
version = "1.11"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.61"
features = [
"Win32_Devices_HumanInterfaceDevice",
"Win32_Foundation",
"Win32_Globalization",
"Win32_Graphics_Dwm",
"Win32_Graphics_Gdi",
"Win32_System_Com",
"Win32_System_Com_StructuredStorage",
"Win32_System_DataExchange",
"Win32_System_Diagnostics_Debug",
"Win32_System_LibraryLoader",
"Win32_System_Memory",
"Win32_System_Ole",
"Win32_System_Registry",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_System_WindowsProgramming",
"Win32_System_SystemInformation",
"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",
]
[target.'cfg(target_os = "windows")'.dependencies.windows-core]
version = "0.61"
[target.'cfg(target_os = "windows")'.dependencies.windows-version]
version = "0.1"
[target.'cfg(target_os = "windows")'.dev-dependencies.softbuffer]
version = "0.4"