Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on the Zed IDE

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

Tips and Traps

  1. Zed does not support the web version yet, however, it does support remote develop .

Install via Flatpak

https://flathub.org/apps/dev.zed.Zed

flatpak install flathub dev …

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 …