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/smasherprog/screen_capture_lite is a good alternative to xcap