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

0
Subscribe to my newsletter

Read articles from Vijay Thirugnanam directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Vijay Thirugnanam
Vijay Thirugnanam

Engineer working at Cerebras in Toronto. Apart from work, read books and tweet about meditation.