Ben Chuanlong Du's Blog

It is never too late to learn.

Rust Error "error: expected item, found 'let'"

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

The error message "error: expected item, found 'let'" is commonly encountered in Rust when you mistakenly place a let statement in an invalid location. A let statement can only be used …

Cargo Build Script Add Wings to Cargo Build

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

  1. build.rs is located in the root directory of the project.

  2. build.rs can be used to directly generate a module or generate some Rust code to be included in another …

Rust Backend Frameworks for gRPC APIs

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 …

Useful Rust Crates for Numeric Computation

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

num

num A collection of numeric types and traits for Rust, including bigint, complex, rational, range iterators, generic integers, and more!

num-derive

num-derive providess procedural macros to derive numeric traits in …