[package] name = "xcap" version = "0.0.14" edition = "2021" 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 (to be implemented)." license = "Apache-2.0" documentation = "https://docs.rs/xcap" homepage = "https://github.com/nashaofu/xcap" repository = "https://github.com/nashaofu/xcap.git" keywords = ["screen", "monitor", "window", "capture", "image"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] vendored = ["dbus/vendored"] [dependencies] image = "0.25" log = "0.4" sysinfo = "0.32" thiserror = "1.0" [target.'cfg(target_os = "macos")'.dependencies] core-foundation = "0.10" core-graphics = "0.24" [target.'cfg(target_os = "windows")'.dependencies] windows = { version = "0.58", features = [ "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_Graphics_Dwm", "Win32_UI_WindowsAndMessaging", "Win32_Storage_Xps", "Win32_System_Threading", "Win32_System_ProcessStatus", "Win32_Storage_FileSystem", ] } [target.'cfg(target_os="linux")'.dependencies] percent-encoding = "2.3" xcb = { version = "1.4", features = ["randr"] } dbus = { version = "0.9" } [dev-dependencies] fs_extra = "1.3"