Our great sponsors
-
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).
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
If you're calling an external process anyway, maybe https://sr.ht/~emersion/grim/ suits your use case better? It can be chained with https://github.com/emersion/slurp to select a screen region with the mouse, if that's necessary.
As for crates, I haven't used https://github.com/nashaofu/screenshots-rs but it seems like it may do what you want? I found it by searching "rust wayland screenshot" on Google. It is apparently not the same library as the 'screenshots-rs' crate on crates.io, though
As for crates, I haven't used https://github.com/nashaofu/screenshots-rs but it seems like it may do what you want? I found it by searching "rust wayland screenshot" on Google. It is apparently not the same library as the 'screenshots-rs' crate on crates.io, though