Ben Chuanlong Du's Blog

It is never too late to learn.

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.

Useful Rust Crates for Bit Manipulations

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

bytemuck

ByteMuck is a crate for mucking around with piles of bytes. It lets you safely perform "bit cast" operations between data types. That's where you take a value and just …

Read and Write Parquet Files 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 can help read and write Parquet files, among which Polars is the best one. As a matter of fact, polars is a DataFrame …

Make a Rust Project Both a Library and a Binary

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

.
├── Cargo.toml
└── src
    ├── main.rs
    │   
    └── lib.rs
[package]
name = "package_name"
version = "0.0.1"
authors = ["me <me@gmail.com>"]

[lib]
name = "lib_name"
path = "src/lib.rs"

[[bin]]
name = "binary_name"
path = "src …