Welcome to the learn-rust-be repository, where we’ll explore how to build backend services using Rust. Before you start, it’s important to have a solid foundation in Rust, along with a functioning development environment. This document outlines the requirements you need to follow along.
-
Rust Language Basics
- You should already be comfortable with variables, functions, control flow, and ownership & borrowing in Rust.
- Ideally, you have completed or thoroughly reviewed the learn-rust repository:
github.com/dzikrisyairozi/learn-rust
This ensures you understand the core principles of Rust programming.
-
Rust Toolchain Installed
- Make sure
rustc,cargo, andrustupare installed on your system. - Run
rustc --versionandcargo --versionin your terminal to verify installation.
- Make sure
-
Basic Command Line & Git Knowledge
- You’ll be using the command line for building and running Rust projects.
- Git is essential for version control. You should know how to commit, push, and pull changes.
# If you haven't installed Rust yet
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustc --version- Ensure this outputs your current Rust version.
- Visual Studio Code (with the rust-analyzer extension) is recommended.
- Other popular choices include IntelliJ IDEA with Rust plugin, Neovim, etc.
- Docker (if you want to containerize your Rust backend).
- A preferred database for later chapters (Postgres, MySQL, or SQLite).
- Tools for HTTP requests (e.g.,
curl, or GUI clients like Postman or Insomnia).
The learn-rust-be repository will be organized into several chapters (directories), each tackling a major aspect of Rust backend development:
- 01 - Introduction
- 02 - Basic Server (No Framework)
- 03 - Using Framework for Backend
- 04 - Routing and Requests
- 05 - Handling Data
- 06 - Databases
- 07 - Authentication and Security
- 08 - Asynchronous Programming and Concurrency
- 09 - Testing and Observability
- 10 - Deployment
Each chapter will have its own README.md with explanations and examples.
- Start Here: Review this prerequisites module to ensure your environment is ready.
- Follow Chapters in Order: Begin at 01 - Introduction and move sequentially.
- Practice & Experiment: Each chapter may include hands-on activities or sample code. Try them out, modify them, and build small projects to reinforce learning.
- Ask Questions: If you get stuck, consult official Rust docs or open a discussion in the repository.
Feel free to explore the chapters at your own pace, and have fun discovering how Rust can power high-performance, safe backend applications!
Happy learning!
© 2025 Learn Rust by Dzikri Syairozi. Licensed under the MIT License.