Skip to product information
1 of 1

Get “close to the machine” by programming with Rust! Discover how to effectively use this low-level language to create fast and efficient code. Set up Rust, compile your first program, and learn the language essentials: variables, functions, conditionals, and more. Walk through Rust’s unique ownership model and modular system, and then move on to more complex features, from flexibility and abstraction to web programming and text processing. Numerous code examples and exercises make this your go-to practical resource for Rust!

  • Your hands-on guide to Rust programming
  • Work with essential language elements, including variables, strings, collections, functions, structures, and traits
  • Explore advanced concepts, including concurrency, testing, and sizing

In this book, you’ll learn about:
  1. Language Basics

    Take your first steps with Rust! After installation and setup in Visual Studio Code, walk through the language building blocks, from variables to functions to enums. Learn how to implement ownership, define types, test your code, and more.

  2. Intermediate Programming

    Expand your toolkit for Rust programming! Write flexible code with generics and traits, incorporate features of functional programming, manage memory, implement data structures, and handle structs.

  3. Advanced Topics

    Become a Rust master! Tackle advanced topics, including sized and unsized types, concurrency via threading, the powerful macro system, web programming, text processing, and file and directory handling.

Highlights include:
  • Language basics
  • Control flow
  • Ownership
  • Structs and enums
  • Generics and traits
  • Modular structure
  • Memory management
  • Testing
  • Concurrency
  • Functional programming
  • Web programming
  • Text processing and file handling

About the Author

Dr. Nouman Azam is an associate professor of computer science at the National University of Computer and Emerging Sciences. He also teaches online programming courses about Rust and MATLAB, and reaches a community of more than 50,000 students. 

He received his PhD in computer science from the University of Regina in Canada. Prior to that, he completed his MSc in computer software engineering from the National University of Sciences and Technology, Pakistan, and his BSc in computer sciences from the National University of Computer and Emerging Sciences, Pakistan. 

Dr. Azam's research interests include game theory, rough sets, conflict analysis, and group decision making.

View full details