Skip to main content

Command Palette

Search for a command to run...

My first Rust program

Updated
•1 min read•View as Markdown
My first Rust program
V

Engineer working in Cerebras. Latest work is Cerebras Inference. I love writing code in React, TypeScript, C++, Python. I spend most of my work hours tinkering with code.

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

More from this blog

V

Vijay Thirugnanam

38 posts

Short technical tips. Mostly stuff that I can refer to later.