Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Cargo

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

Create a Project

cargo init
cargo new project_name
cargo new --lib project_name

Install a Rust Crate (Package)

Install a Rust crate from GitHub (the default branch).

cargo install --git https://github …

Rust Crates for RPC

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

prost

prost is a Protocol Buffers implementation for the Rust Language. It helps generate simple, idiomatic Rust code from proto2 and proto3 files.