Registry / utility / scrap
library0.5.0rscratesunverified

Screen capture made easy, providing cross-platform screen recording capabilities.

# Cargo.toml [dependencies] scrap = "0.5.0"
INSTALL
IMPORT
SIG · SCRAP
S
scrap
utilityrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Capturer
✓ use scrap::Capturer;

Capture the primary display and print the frame dimensions.

use scrap::Capturer; use scrap::Display; fn main() -> Result<(), Box<dyn std::error::Error>> { let display = Display::primary()?; let mut capturer = Capturer::new(display)?; let frame = capturer.frame()?; println!("Captured frame of size {}x{}", frame.width(), frame.height()); Ok(()) }
Debug
Known issues
gotchaOn Linux, requires X11 or Wayland with appropriate permissions.
fix
Ensure display server is running and permissions are granted.
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
scrap — cargo add scrap · libregistry