Ben Chuanlong Du's Blog

It is never too late to learn.

Send and Sync in Rust

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

Tips and Traps

  1. Send and Sync are 2 thread-safty related marker traits in Rust.

  2. A type is Send if and only if it can be transferred across thread boundaries. A type is Sync if and only if &T

Parse YAML in Rust

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

Comments

  1. The serde_yaml crate is the best tool for parsing YAML in Rust.

Calling Rust from Python

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

Tools

pyo3

Rust bindings for Python, including tools for creating native Python extension modules. Running and interacting with Python code from a Rust binary is also supported.

maturin

Build and publish …