Leanpub Header

Skip to main content

Advanced Rust Bundle

Master the art of systems programming in Rust by building the software that powers modern computing. From programming languages and debuggers to hypervisors, web servers, and LLM inference engines, this collection takes you behind the abstractions with complete, hands-on implementations that reveal how these systems really work.

Bought separately

$145

Minimum price

$75.00

$89.00

You pay

Author earns

$

Also available for 3 book credits with a Reader Membership

These books have a total suggested price of $145. Get them now for only $75.00!
About

About

About the Bundle

Learn how modern systems software works by building it yourself in Rust. This bundle includes five hands-on books that take you from first principles to complete, production-quality implementations with fully compilable code and detailed explanations.

Included books:

  • Building Programming Languages with Rust: Design and implement a complete programming language with a lexer, parser, type system, interpreter, virtual machine, LLVM backend, standard library, REPL, formatter, linter, and language server.
  • Inside the Debugger: Building a Source-Level Debugger in Rust: Build a source-level debugger with breakpoints, register and memory inspection, DWARF parsing, stack unwinding, expression evaluation, and multithreaded debugging.
  • Building a Hypervisor in Rust: Implement an x86_64 hardware-assisted hypervisor with CPU virtualization, memory management, device emulation, VirtIO, and multi-vCPU support.
  • Rust from Sockets to Servers: Build a high-performance web server from raw TCP sockets through HTTP, TLS, routing, middleware, REST APIs, testing, and deployment.
  • Rust for LLM Inference: Create a high-performance LLM inference engine covering transformers, KV caching, quantization, batching, GPU optimization, and production serving.

Whether you are interested in compilers, operating systems, virtualization, networking, or AI infrastructure, this bundle gives you the practical knowledge to build real systems from the ground up using Rust.

Books

About the Books

Building Programming Languages with Rust

From Lexers to LLVM: A Complete Guide to Language Implementation

This book teaches you how to build a complete, production-quality programming language from scratch using Rust. Over twenty chapters, you will design and implement every component of a real language called Rune: the lexer, parser, type system, interpreter, bytecode virtual machine, native code generator, standard library, and full developer tooling chain including a REPL, formatter, linter, and language server. Every chapter includes complete, compilable Rust code with detailed explanations of design trade-offs, performance considerations, and common pitfalls. By the end, you will have built a feature-complete language and deep understanding of how programming languages work internally.

Inside the Debugger: Building a Source-Level Debugger in Rust

A Deep Dive into Processes, Memory, Breakpoints, and DWARF Debug Information

A debugger is not magic. It is a careful orchestration of operating system primitives, CPU features, and compiler-generated metadata that together let you pause a running program, inspect its state, and control its execution one instruction at a time. This book teaches you how to build a fully functional source-level debugger from scratch in Rust. Starting from the fundamentals of processes, virtual memory, and executable formats, we progressively implement every feature a real debugger needs: process attachment, software and hardware breakpoints, single stepping, register inspection, memory read and write, symbol resolution, stack unwinding, call frame inspection, DWARF debug information parsing, source-level debugging, expression evaluation, watchpoints, multithreaded debugging, shared library support, signal handling, and remote debugging concepts. Every concept is accompanied by complete, production-quality Rust code that builds upon previous chapters into a cohesive debugger. By the end of this book, you will have built a capable debugger entirely in Rust and gained deep insight into how programs execute, how operating systems manage processes, and how compilers encode the information needed to map machine code back to source code.

Building a Hypervisor in Rust

From First Principles to a Full Virtualization Platform

This book teaches you how to implement a complete x86_64 hardware-assisted hypervisor entirely in Rust. Starting from an empty project, you will build every component: CPU virtualization using Intel VT-x (with AMD-V parallels), extended page tables for memory isolation, VM exit handling, interrupt and APIC virtualization, device emulation, VirtIO paravirtualized devices for storage and networking, ACPI table generation, guest firmware loading, and multi-vCPU scheduling. Every concept is grounded in working, compilable Rust code with line-by-line explanations. No placeholders, no pseudocode, no hand-waving. If you have systems programming experience and want to understand how virtualization really works at the hardware level, this book will take you there.

Rust from Sockets to Servers

Building a High-Performance Web Server in Rust from First Principles

You have used web frameworks. You know how to spin up an Axum or Actix server in minutes. But do you understand what happens when a browser sends a request and your server sends back a response? This book takes you on a hands-on journey from raw TCP sockets through the full stack of HTTP/1.1, HTTP/2, TLS, routing, middleware, templating, REST APIs, testing, benchmarking, and deployment. Every chapter adds a layer to a production-quality web server built entirely in Rust using Tokio and carefully chosen crates. By the end, you will not only have a working server but also the deep intuition that makes you a better developer no matter what tools you eventually use.

Rust for LLM Inference

Building High-Performance LLM Inference Engine from Scratch

This book is a complete guide to understanding and building large language model inference engines in Rust. It takes you from the mathematical foundations of the transformer architecture through tokenization, attention mechanisms, KV caching, quantization, batching strategies, GPU and CPU optimization, distributed serving, and production deployment. Along the way, you will see idiomatic Rust code examples, performance benchmarks, comparisons with leading frameworks like vLLM, TGI, llama.cpp, Candle, Burn, and mistral.rs, and practical insights for shipping inference systems that rival the best open-source and commercial offerings. Whether you are a systems programmer interested in AI infrastructure or an ML engineer curious about the Rust ecosystem, this book gives you the depth to build, optimize, and understand.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub