Set Up Diesel

Let's prepare our project for the database interface.

As web developers, we might need access to a database. One of the resources used in most web frameworks is an ORM (object-relational mapping) tool.

Diesel is one of the most popular and stable ORM tools in Rust.

In this lesson, we’ll learn to install and configure it for our projects.

We want to install the required database drivers. Instructions for installing these drivers for Linux/Mac can be found here.

Get hands-on with 1200+ tech skills courses.