# My first Rust program

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

```plaintext
brew install rustup
```

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

```plaintext
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.

<mark>Actix / Rust - 2ms<br>FastAPI / Python - 5ms</mark>

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

If you want to see an example Rust program - [try this link](https://yosunai.com/chat/1a1deff7-b268-4cb1-aa4e-b4be03fe507d)
