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).
Why do you think that https://github.com/DrSh4dow/upwork-wlroots-bridge is a good alternative to xcap