Ben Chuanlong Du's Blog

It is never too late to learn.

Take Screenshot in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

scrap

scrap makes screen capture easy!

captrs

captrs is a library for cross-platform screen capture in Rust. Uses dxgcap for capture on Windows via the Desktop Duplication API, and X11Cap for …

Async in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Combining asynchronous code with synchronous code that can cause blocking is never a wise choice. When calling asynchronous code from a synchronous context, use futures::executor::block_on and spawn the async …