Chris Amirani (4)

I am full stack software engineer, mainly focused on building the modern web. I started my journey by building in Visual Basic in high school, built agricultural AI systems in college and then fell in love with web development.

Now I am writing this blog as I learn Rust :)

Chris Amirani

#1: Setting Up a New Rust Project

Hopefully by now you're all setup and ready to build. Let's start simple and just setup our project. If you have installed Rust correctly. You should start by running the following command: cargo init rusty-db In our case, we called our project rusty-db, but you…

Continue reading...
Chris Amirani

#2: Adding a Storage Module

Now that we have got our project up and running, let's actually implement the first piece we'll need to store data. To do that, I made a storage.rs file in my /src directory. This will be our storage module that we'll import later to use. Just like many other…

Continue reading...
Chris Amirani

#3: Importing Modules in Rust

Now that we have defined our storage.rs module, let's import it in our main module and test it with some data. There are many ways we can do an import, let's try a simple way for now. mod storage; use storage::Database; I used the mod keyword to…

Continue reading...