xcap 0.8.1

XCap is a cross-platform screen capture library written in Rust. It supports Linux (X11, Wayland), MacOS, and Windows. XCap supports screenshot and video recording (WIP).
[dependencies.image]
default-features = false
features = ["png"]
version = "0.25"

[dependencies.log]
version = "0.4"

[dependencies.scopeguard]
version = "1.2"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.fs_extra]
version = "1.3"

[[example]]
name = "focused_window"
path = "examples/focused_window.rs"

[[example]]
name = "monitor"
path = "examples/monitor.rs"

[[example]]
name = "monitor_capture"
path = "examples/monitor_capture.rs"

[[example]]
name = "monitor_record"
path = "examples/monitor_record.rs"

[[example]]
name = "monitor_region_capture"
path = "examples/monitor_region_capture.rs"

[[example]]
name = "window"
path = "examples/window.rs"

[[example]]
name = "window_capture"
path = "examples/window_capture.rs"

[features]
image = ["image/default"]

[lib]
name = "xcap"
path = "src/lib.rs"

[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "XCap is a cross-platform screen capture library written in Rust. It supports Linux (X11, Wayland), MacOS, and Windows. XCap supports screenshot and video recording (WIP)."
documentation = "https://docs.rs/xcap"
edition = "2024"
homepage = "https://github.com/nashaofu/xcap"
keywords = ["screen", "monitor", "window", "capture", "image"]
license = "Apache-2.0"
name = "xcap"
readme = "README.md"
repository = "https://github.com/nashaofu/xcap.git"
resolver = "2"
version = "0.8.1"

[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3"

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.1"

[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3.1"

[target.'cfg(target_os = "macos")'.dependencies.objc2-av-foundation]
version = "0.3.1"

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3.1"

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-graphics]
version = "0.3.1"

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-media]
version = "0.3.1"

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-video]
version = "0.3.1"

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.1"

[target.'cfg(target_os = "windows")'.dependencies.widestring]
version = "1.2"

[target.'cfg(target_os = "windows")'.dependencies.windows]
features = ["Win32_Foundation", "Win32_Graphics_Gdi", "Win32_Graphics_Dwm", "Win32_Devices_Display", "Win32_System_LibraryLoader", "Win32_UI_WindowsAndMessaging", "Win32_Storage_Xps", "Win32_System_Threading", "Win32_System_ProcessStatus", "Win32_System_Registry", "Win32_Storage_FileSystem", "Win32_Graphics_Dxgi", "Win32_Graphics_Direct3D", "Win32_Graphics_Direct3D11", "Win32_Graphics_Dxgi_Common"]
version = "0.61"

[target.'cfg(target_os="linux")'.dependencies.lazy_static]
version = "1.5"

[target.'cfg(target_os="linux")'.dependencies.libwayshot-xcap]
version = "0.3"

[target.'cfg(target_os="linux")'.dependencies.percent-encoding]
version = "2.3"

[target.'cfg(target_os="linux")'.dependencies.pipewire]
version = "0.8"

[target.'cfg(target_os="linux")'.dependencies.rand]
version = "0.9"

[target.'cfg(target_os="linux")'.dependencies.serde]
version = "1.0"

[target.'cfg(target_os="linux")'.dependencies.url]
version = "2.5"

[target.'cfg(target_os="linux")'.dependencies.xcb]
features = ["randr"]
version = "1.5"

[target.'cfg(target_os="linux")'.dependencies.zbus]
version = "5.6"

[target.'cfg(target_os="windows")'.dev-dependencies.windows]
features = ["Win32_UI_HiDpi"]
version = "0.61"