Ben Chuanlong Du's Blog

It is never too late to learn.

Progress Bar in Rust

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

There are a few crates in Rust which provide terminal progress reporting functionalities. The indicatif crate is the best one to use. The linya crate is a simple no-deps alternative to …

Useful Rust Crates for GraphQL

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

TrustFall

If GraphQL were more like SQL: a query language for any combination of data sources.

Debug a Rust Application

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

Debugging Rust in VSCode

  1. Install the extension CodeLLDB .

  2. Uncheck "Pause on panic" (checked by default).

Debug Rust Using rust-gdb

Debug Rust Using rust-lldb

Debug Rust Using rr

is a lightweight tool …

RPC Implementation in Rust

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

tonic

tonic is a gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility. This library was created to have first class support of async/await and to act …

Tips on Refactoring Rust Code

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

https://rust-analyzer.github.io/manual.html#structural-search-and-replace

cargo clippy fix

General Approach for Auto Refactoring

  1. use cargo build or cargo clippy to generate error msgs for a specific kind of issue …