Photo by timJ on UnsplashIn this article, we will see how to structure a Rust project so that it’s easily testable. We will build a simple authentication module that is exposed via REST API while storing the data to PostgreSQL and Redis. We will use actix-web for handling the REST API part, sqlx for interacting with PostgreSQL, and redis-rs for interacting with Redis. We will see how the applicati
![Structuring Rust Project for Testability](https://cdn-ak-scissors.b.st-hatena.com/image/square/6ecde6068b8627b6b406519b144496f6098b26ad/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1200%2F1%2AfwYQOGc0iUZqAJpAl5T8gA.jpeg)