My first Rust program

My first Rust program

I wrote my first Rust program. On my Mac, I was able to get started in a few minutes.

brew install rustup

This installs rustc (rust compiler) and cargo (for build).

rustc --version
cargo --version

I built an api server based on actix. It gets some data from redis. And for fun, I wrote the same api in python and fast api. And compared the results in POSTMAN.

Actix / Rust - 2ms
FastAPI / Python - 5ms

I will definitely give Rust a try for any performance critical projects.

If you want to see an example Rust program - try this link