Thanks to visit codestin.com
Credit goes to lib.rs

10 unstable releases (3 breaking)

Uses new Rust 2024

0.5.0 Jun 9, 2025
0.5.0-rc1 May 2, 2025
0.4.0 Oct 4, 2024
0.2.5 Apr 20, 2024
0.1.0 Jun 29, 2023

#1675 in GUI

Codestin Search App

566 downloads per month
Used in haruhishot

MIT license

43KB
1K SLoC

libharuhishot

libharuhishot, it is used for wlr-screencopy, split it because I want to help with wayshot, but I also learn a lot. I like my program very much, because it makes me feel alive. Wayshot is a good program, please help them.

The lib is simple enough to use, you can take the haruhishot for example, simple usage is like

use libharuhishot::HaruhiShotState;
fn main() {
  let mut state = HaruhiShotState::init().unwrap();
  let outputs = state.outputs();
  let output = outputs[0].clone();
  let image_info = state.shot_single_output(output).unwrap();
}

Then you will get a [FrameInfo], There is a mmap , you can get data there

Dependencies

~18–26MB
~441K SLoC