Environment Setup - Axum - Complete Documentation by ntxm.org

Linux platform support

This guide explains which Linux distributions and system dependencies are needed to set up a Rust and Axum development environment on Linux.

macOS Platform Support for Axum Development

Understand macOS support for building Axum applications in Rust, including supported versions, prerequisites, and how to verify your system is ready.

Windows 10 Platform Support for Rust and Axum

What Windows 10 versions and builds are supported for Rust development, the MSVC toolchain requirement, system prerequisites, and how to verify your machine is ready before installing anything.

Windows 11 Platform Support

Prepare your Windows 11 computer for Axum development by checking system requirements, Windows features, and build tools.

Understanding the rustup Installer

What rustup is, why it exists, how it manages Rust toolchains, and how the installer works before you run platform-specific commands.

macOS install command

Step-by-step guide to installing Rust on macOS using the official rustup command from the terminal, with explanations of each flag and common troubleshooting tips.

Linux install command

How to install Rust on Linux using the rustup installation command including distribution-specific prerequisites alternatives and shell configuration

Windows install considerations

A complete beginner guide to installing the Rust toolchain on Windows, covering MSVC and GNU toolchain choices, Visual Studio Build Tools, PATH setup, and the most common Windows-specific installation problems with fixes.

Default Toolchain

Learn what the Rust default toolchain is, how rustup manages toolchains, and how to check and change the default toolchain for your projects.

rustc --version - Verify Your Rust Compiler Installation

Learn how to check the installed Rust compiler version using rustc --version, understand the output, and troubleshoot common issues.

Checking Cargo Version with cargo --version

Learn how to verify that Cargo, the Rust build tool and package manager, is correctly installed by checking its version from the terminal.

Keeping Rust Up to Date with rustup update

Learn what rustup update does, how to run it, how to update specific toolchains, and why an up-to-date Rust installation matters for building Axum applications.

VS Code Install

Step-by-step guide to downloading and installing Visual Studio Code for Rust and Axum development on Windows, macOS, and Linux

rust-analyzer extension

A complete beginner guide to installing and using the rust-analyzer extension in VS Code for Rust development.

CodeLLDB extension

Learn how to install and configure the CodeLLDB extension in VS Code to debug Rust programs with breakpoints, variable inspection, and step-by-step execution.

cargo fmt - Code Formatting for Rust Projects

Learn how to use cargo fmt to automatically format Rust code, configure formatting rules with rustfmt.toml, integrate with VS Code, and understand what happens when you run the formatter.

cargo clippy

Learn how to use cargo clippy to find and fix common mistakes in Rust code, integrate it with VS Code, and configure lints for your Axum development environment

cargo-watch for Axum Development

Learn how to use cargo-watch to automatically restart your Rust application whenever you change your code, with a focus on Axum development.

sqlx-cli - Database and Migration Command Line Tool

Learn how to install and use sqlx-cli to create databases, manage migrations, and interact with your SQLx database from the command line

API Testing Tools

Learn what API testing tools are, why you need them before building an Axum backend, and how to use command-line and graphical clients like curl, HTTPie, Postman, and Insomnia to inspect HTTP requests and responses.

DBeaver Database Management Tool

Learn how to install DBeaver and use it to view, edit, and query databases. This guide covers installation on Windows, macOS, and Linux, creating a SQLite connection, and running SQL commands.

Installing PostgreSQL Server

A beginner-friendly guide to installing PostgreSQL server on Windows, macOS, and Linux for use with Axum projects

Default port 5432

Learn what a network port is, why PostgreSQL uses port 5432 by default, how to verify the connection works, and how to change the port when needed.

Local superuser in PostgreSQL

Understand what the PostgreSQL local superuser is, how it is created during installation, and how to connect, configure, and use it safely on your development machine.

Docker install

How to install Docker Desktop on Windows macOS and Linux for local Axum development.

Docker daemon

Understand what the Docker daemon is, how it runs inside Docker Desktop, how to check its status, start and stop it, and fix common connection errors.

Container basics

Learn what Docker containers and images are, how to run and manage containers, and how to build a simple image from a Dockerfile

cargo check

Learn how to use cargo check for fast compile feedback when building Rust and Axum applications without waiting for a full binary build

Stable vs nightly Rust channels

Understand the difference between Rust's stable, beta, and nightly release channels, why Axum development uses stable, and how to safely switch toolchains for experimentation.

JetBrains Rust Plugin Setup for Axum Development

Learn how to set up Rust development in JetBrains IDEs - RustRover or the Rust plugin for IntelliJ IDEA Ultimate and CLion - to write, run, and debug Rust applications, preparing your environment for Axum development.

Neovim rust-analyzer setup

How to set up Neovim with rust-analyzer for Rust code completion, error checking, and navigation

HTTPie client

Learn how to install and use HTTPie, a beginner-friendly command-line HTTP client for testing APIs with readable, colored output.

Postman or Insomnia for Testing Axum APIs

Learn how to install and use Postman or Insomnia to send HTTP requests, organize your API testing workflow, and get ready to test Axum servers.

Running PostgreSQL in a Docker Container

Learn how to run PostgreSQL inside a Docker container for local development without installing it directly on your machine