liveBook · Manning

Chapter 1: Why Rust?

What you will learn in chapter 1 of Rust Web Development

This introduction presents Rust’s performance, safety, tooling, and versatility as reasons to use it for web development and other systems.

After this chapter you will be able to

Section by section

Introduction

This introduction presents Rust’s performance, safety, tooling, and versatility as reasons to use it for web development and other systems.

Key terms: compiler, garbage collection, memory safe, use-after-free, testing, documentation, package manager, systems programming, WebAssembly

1.1 Batteries included: Rust’s tooling

This section introduces Rust’s tools for installing, building, maintaining, and managing dependencies in applications.

Key terms: Rustup, rustup update, Cargo, cargo new, cargo run, cargo build, src, target/debug, Rustc, LLVM

1.2 The Rust compiler

This section explains how Rust’s compiler supports performance, safety, development, and maintenance.

Key terms: binary code, garbage collection, memory safety, compile time, runtime, match block, pattern matching, use case, compiler error, error messages

1.3 Rust for web services

This section explains Rust’s web-service stack, asynchronous programming foundations, and the trade-offs of relying on community implementations.

Key terms: TCP, HTTP, standard library, web framework, Hyper, asynchronous programming, requests, syntax, type, thread scheduler

1.4 Maintainability of Rust applications

This section explains how Rust’s documentation, modularization, testing, and community resources support maintainable applications.

Key terms: Cargo, documentation, code comments, tests, modularizing, crate, Cargo.toml, dependency section, crates.io, testing

1.5 Summary

Where this is used later

Concepts explained in this chapter

Chapter 2: Laying the foundation →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.