[package]
edition = "2021"
rust-version = "1.60.0"
name = "x-win"
version = "5.7.1"
authors = ["BENKHADRA Hocine <miniben90@hotmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "This package allows you to retrieve precise information about active and open windows on Windows, MacOS, and Linux. You can obtain the position, size, title, and other memory of windows."
readme = "README.md"
keywords = [
"window",
"active",
"current",
"position",
"open",
]
license = "MIT"
repository = "https://github.com/miniben-90/x-win/tree/main/x-win-rs"
[features]
default = []
macos_permission = []
[lib]
name = "x_win"
path = "src/lib.rs"
[[example]]
name = "get_active_window"
path = "examples/get_active_window.rs"
[[example]]
name = "get_browser_url"
path = "examples/get_browser_url.rs"
[[example]]
name = "get_open_windows"
path = "examples/get_open_windows.rs"
[[example]]
name = "get_window_icon"
path = "examples/get_window_icon.rs"
[dependencies.base64]
version = "0.22.1"
[dependencies.once_cell]
version = "1.21.4"
[target.'cfg(target_os = "linux")'.dependencies.image]
version = "0.25.10"
[target.'cfg(target_os = "linux")'.dependencies.serde_json]
version = "1.0.150"
[target.'cfg(target_os = "linux")'.dependencies.x11]
version = "2.21.0"
features = ["xlib"]
optional = true
[target.'cfg(target_os = "linux")'.dependencies.xcb]
version = "1.7.0"
[target.'cfg(target_os = "linux")'.dependencies.zbus]
version = "5.17.0"
[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6.2"
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.4"
[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3.2"
features = [
"NSImage",
"NSRunningApplication",
"NSWorkspace",
"NSBitmapImageRep",
"NSImageRep",
"NSScreen",
]
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3.2"
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-graphics]
version = "0.3.2"
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.2"
features = [
"NSArray",
"NSString",
"NSGeometry",
"NSProcessInfo",
]
[target.'cfg(target_os = "windows")'.dependencies.png]
version = "0.18.1"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62.2"
features = [
"Win32_Foundation",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Threading",
"Win32_Storage_FileSystem",
"Win32_System_ProcessStatus",
"Win32_System_StationsAndDesktops",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_Graphics_Dwm",
"UI_UIAutomation",
"Win32_System_Com",
"Win32_UI_Accessibility",
"Win32_System_Ole",
"Win32_UI_Shell_PropertiesSystem",
"Win32_UI_Shell_Common",
"Win32_System_Variant",
"Win32_Graphics_Gdi",
"Win32_Graphics_Imaging",
]
[profile.release]
lto = true
panic = "abort"