nashaofu / xcap

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).
https://docs.rs/xcap
Apache License 2.0
459 stars 55 forks source link

use feature to selectively build things for linux #134

Open lilydjwg opened 3 months ago

lilydjwg commented 3 months ago

e.g. a x11 feature to depend xcb and support x11, a portal feature to depend dbus and support screenshot via xdg-portal, a wlroots feature to support wlroots-based compositors.

And, why is dbus vendored by default? I can't think of a linux system without dbus....