xcap 0.8.2

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).
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "xcap"
version = "0.8.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = 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)."
homepage = "https://github.com/nashaofu/xcap"
documentation = "https://docs.rs/xcap"
readme = "README.md"
keywords = [
    "screen",
    "monitor",
    "window",
    "capture",
    "image",
]
license = "Apache-2.0"
repository = "https://github.com/nashaofu/xcap.git"
resolver = "2"

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

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

[[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"

[dependencies.image]
version = "0.25"
features = ["png"]
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.scopeguard]
version = "1.2"

[dependencies.thiserror]
version = "2.0"

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

[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]
version = "0.61"
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",
]

[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.9"

[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]
version = "1.5"
features = ["randr"]

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

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