Introduction to Rust

January 07, 2023

Rust is a fast, safe, and concurrent systems programming language that is quickly gaining popularity in the high frequency trading (HFT) community.

Rust is a systems programming language that was designed to be fast, safe, multi-threaded and concurrent. In addition, it has a unique ownership and borrowing system that allows for efficient memory management without needing a garbage collector, which can reduce latencies and improve performance.

Rust lang

I've been using Rust for a while now (2018), and I find it to be a great language applications that require high performance and low latency. It works well with other languages too, such as Python via PyO3, which means you can write performance-critical parts of your application in Rust and expose them to Python for quick research/prototyping.

Quick setup

Useful dev packages

To install globally via

cargo install <package>

References

Here are a few references for Rust programming: