Leanpub Header

Skip to main content

Filters

Category: "Rust"

Rust

New to Rust? Read the Rust article

  1. Building a Hypervisor in Rust
    Building a Hypervisor in Rust
    From First Principles to a Full Virtualization Platform
    Steve Publications

    Build a complete x86_64 hardware-assisted hypervisor in Rust from the ground up. Through real, compilable code and clear explanations, you'll implement every major subsystem, from CPU and memory virtualization to device emulation, VirtIO, and multi-vCPU scheduling, gaining a practical understanding of modern virtualization.

  2. Building Programming Languages with Rust
    Building Programming Languages with Rust
    From Lexers to LLVM: A Complete Guide to Language Implementation
    Steve Publications

    Learn how to build a modern programming language from scratch in Rust. By implementing a complete language called Rune, you will explore every stage of language design, from lexing and parsing to type checking, virtual machines, LLVM code generation, and developer tooling, with practical code and clear explanations throughout.

  3. Rust Projects - Write an Interpreter
    Rust Projects - Write an Interpreter
    Learn Rust while you explore the fascinating art of writing a programming language
    Leonardo Giordani

    Explore the power of Rust with "Rust Projects: Write an Interpreter". This hands-on guide takes you through building an implementation of the programming language Lox, invented by Robert Nystrom. The book will follow Robert Nystrom's book and the CodeCrafters challenge "Build your own Interpreter", and at the same time will help you to understand strengths and weaknesses of Rust. Whether you're new to Rust or looking to deepen your understanding, this project-based journey offers practical, real-world insights into modern coding. The book contains 40% discount code for CodeCrafters.io!

  4. Rusty Graphs - AI Ready Graphs for Rust Developers

    Language models guess. Knowledge graphs know. Rusty Graph shows you how to build a local AI agent whose memory is a real knowledge graph — typed, validated, reasoned over, and queryable with SPARQL — all inside a single static Rust binary. No JVM. No Docker sidecar. No Python runtime bolted to the side. You will build Ares a research-assistant agent that observes papers, forms beliefs, makes promises to other agents, and tracks the provenance of every fact it holds. Chapter by chapter, Ares grows from an empty Cargo workspace into a full pipeline: > load → reason → validate → query → answer All of it in under a thousand lines of idiomatic Rust, using three crates that actually work today: `oxigraph`, `reasonable`, and `rudof_lib`. `grapfeo` You will learn how to- Model a domain as RDF triples and load them into an embedded store. - Write RDFS and OWL 2 RL axioms that infer trust, identity, and inverse relationships — automatically. - Guard your graph with SHACL shapes that reject bad data at the boundary, not in production. - Query everything with SPARQL, from simple lookups to federated queries across named graphs. - Wire the graph into a hybrid RAG pipeline so your LLM answers are grounded in facts, not vibes. Who it is forRust developers building agents, assistants, or any system where the answer "the model said so" is not good enough. You should be comfortable with Cargo and traits. You do **not** need any prior semantic-web background — every concept is introduced through Ares before any formal definition appears. Why Rust, why nowLocal agents are the next deployment target: a user's laptop, a Raspberry Pi, a WASM sandbox. Python cannot go there comfortably. Rust can. This book is the missing manual for the Rust side of the semantic web — the one that tells you exactly which crates work, where the ecosystem is thin, and how to ship anyway. Stop hoping your model tells the truth. Give it a graph that does.

  5. Rust CLI Mastery
    Rust CLI Mastery
    Build Production-Ready Command-Line Tools
    Rajeev Edmonds

    Go beyond Rust fundamentals. Learn to design, build, test, and ship reliable command-line applications through practical examples and four complete capstone projects.

  6. Machine Learning with Rust, Second Edition
    Machine Learning with Rust, Second Edition
    Implement data pipelines, classical models, deep learning and NLP using burn, candle, linfa and smartcore
    GitforGits | Asian Publishing House

    The latest version of Rust (1.85) has some great new features, like async closures, more stable associated function return types, and const generics that are now mature enough to underpin serious numerical libraries. The linfa and smartcore ecosystems have developed into decent classical machine learning stacks. The Burn training framework feels native to Rust, not like it's been ported from it. The Candle makes it so that loading pre-trained transformer models is more of an engineering task than a research exercise. The crates that used to need all sorts of workarounds now just work.

  7. Rust for Systems Programming: From Memory Fundamentals to High-Performance Software
    Rust for Systems Programming: From Memory Fundamentals to High-Performance Software
    A comprehensive guide to building reliable, secure and efficient systems software with Rust
    Steve Publications

    Ready to move beyond the basics of Rust? This book takes you inside the language, from ownership and memory management to concurrency, networking and performance optimization. Build real systems projects, learn to track down tricky bugs and gain the skills to write Rust software that is fast, secure and reliable.

  8. Building a Rust Language Server
    Building a Rust Language Server
    A Complete Guide to Implementing LSP in Rust
    Steve Publications

    Build a real language server from the ground up in Rust. Learn how LSP works, then turn parsing, analysis and async Rust into autocomplete, diagnostics, go-to-definition, refactoring and more. By the end, you’ll have a production-ready server that works with VS Code, Neovim and other modern editors.

  9. Rust for LLM Inference
    Rust for LLM Inference
    Building High-Performance LLM Inference Engine from Scratch
    Steve Publications

    Learn how modern LLM inference engines work by building one from scratch in Rust. From transformers and tokenization to KV caching, quantization, batching, and GPU optimization, this book combines theory, hands-on code, and performance engineering to help you create fast, production-ready AI systems.

  10. Rust for Java Developers

    "Your Java microservice runs in 2GB of memory. The same service in Rust? 200MB. Scale that across 100 instances in production, and you're looking at $3,000/month in savings. But it's not just about money—it's about predictability. While Java's garbage collector unpredictably pauses your latency-critical workloads, Rust guarantees deterministic performance. This book teaches you Rust from a Java developer's perspective: same powerful type system, same design patterns, but with compile-time safety that prevents entire categories of bugs. No more race conditions in concurrent code. No more null pointer exceptions. Just code that works, fast."

  11. The Rust Iterator Cookbook
    The Rust Iterator Cookbook
    78 recipes for writing expressive, efficient, and idiomatic iterator pipelines in Rust.
    Eugenio Perrotta Neto

    Every .map(), .filter(), and .collect() you write is built on a single method: next(). This book shows you what's underneath — and what you can build on top.

  12. Rust: The Complete Guide 2026 EDITION - MODERN SYSTEMS PROGRAMMING

    Get the speed of C++ without the crashes. This 2026 edition takes you from your first Cargo project to production-ready Rust, covering ownership, lifetimes, traits, async, unsafe code, embedded systems, and WebAssembly. Packed with runnable code and honest trade-offs, it gives you the mental models to write fast, safe software with confidence.

  13. Using Linux for Software Development
    Using Linux for Software Development
    A Complete Beginner-to-Advanced Guide
    Steve Publications

    From the Linux basics to advanced development workflows, this practical guide shows you how to turn Linux into a powerful software development environment. Learn the command line, work with popular programming languages, use containers and CI/CD, debug and profile applications and build skills you can use every day.

  14. Rust Projects - Write a Redis Clone
    Rust Projects - Write a Redis Clone
    Explore asynchronous programming with the actor model using Rust and Tokio
    Leonardo Giordani

    Explore the power of Rust with "Rust Projects: Write a Redis Clone". This hands-on guide takes you through building a Redis-inspired database from the ground up, introducing key programming concepts like TCP connections, the RESP protocol, and concurrency. Following the CodeCrafters challenge, this book gradually builds your skills, making complex topics accessible. Whether you're new to Rust or looking to deepen your understanding, this project-based journey offers practical, real-world insights into modern systems programming. The book contains 40% discount code for CodeCrafters.io!

  15. Candle
    Candle
    Neural Networks with Rust
    little world

    Candle is a minimalist, high-performance ML framework.The explicitness of Rust without layers of abstraction obscuring what's really happening