Rust for Rustaceans

Idiomatic Programming for Experienced Developers

By Jon Gjengset | Publisher: No Starch Press

About the book

Master professional-level coding in Rust.

For developers who’ve mastered the basics, this book is the next step on your way to professional-level programming in Rust. It covers everything you need to build and maintain larger code bases, write powerful and flexible applications and libraries, and confidently expand the scope and complexity of your projects.
 
Author Jon Gjengset takes you deep into the Rust programming language, dissecting core topics like ownership, traits, concurrency, and unsafe code. You’ll explore key concepts like type layout and trait coherence, delve into the inner workings of concurrent programming and asynchrony with async/await, and take a tour of the world of no_std programming. Gjengset also provides expert guidance on API design, testing strategies, and error handling, and will help develop your understanding of foreign function interfaces, object safety, procedural macros, and much more.
 
You'll Learn:

  • How to design reliable, idiomatic, and ergonomic Rust programs based on best principles
  • Effective use of declarative and procedural macros, and the difference between them
  • How asynchrony works in Rust – all the way from the Pin and Waker types used in manual implementations of Futures, to how async/await saves you from thinking about most of those words
  • What it means for code to be unsafe, and best practices for writing and interacting with unsafe functions and traits
  • How to organize and configure more complex Rust projects so that they integrate nicely with the rest of the ecosystem
  • How to write Rust code that can interoperate with non-Rust libraries and systems, or run in constrained and embedded environments
  •  
    Brimming with practical, pragmatic insights that you can immediately apply, Rust for Rustaceans helps you do more with Rust, while also teaching you its underlying mechanisms.

    Editions of Rust for Rustaceans

    Paperback
    ISBN 9781718501850
    EBook
    ISBN 9781718501867

    Read an Excerpt

    Master professional-level coding in Rust.

    For developers who’ve mastered the basics, this book is the next step on your way to professional-level programming in Rust. It covers everything you need to build and maintain larger code bases, write powerful and flexible applications and libraries, and confidently expand the scope and complexity of your projects.
     
    Author Jon Gjengset takes you deep into the Rust programming language, dissecting core topics like ownership, traits, concurrency, and unsafe code. You’ll explore key concepts like type layout and trait coherence, delve into the inner workings of concurrent programming and asynchrony with async/await, and take a tour of the world of no_std programming. Gjengset also provides expert guidance on API design, testing strategies, and error handling, and will help develop your understanding of foreign function interfaces, object safety, procedural macros, and much more.
     
    You'll Learn:

  • How to design reliable, idiomatic, and ergonomic Rust programs based on best principles
  • Effective use of declarative and procedural macros, and the difference between them
  • How asynchrony works in Rust – all the way from the Pin and Waker types used in manual implementations of Futures, to how async/await saves you from thinking about most of those words
  • What it means for code to be unsafe, and best practices for writing and interacting with unsafe functions and traits
  • How to organize and configure more complex Rust projects so that they integrate nicely with the rest of the ecosystem
  • How to write Rust code that can interoperate with non-Rust libraries and systems, or run in constrained and embedded environments
  •  
    Brimming with practical, pragmatic insights that you can immediately apply, Rust for Rustaceans helps you do more with Rust, while also teaching you its underlying mechanisms.

    Frequently Asked Questions

    What is Rust for Rustaceans about?

    Master professional-level coding in Rust.

    For developers who’ve mastered the basics, this book is the next step on your way to professional-level programming in Rust. It covers everything you need to build and maintain larger code bases, write powerful and flexible applications and libraries, and confidently expand the scope and complexity of your projects.
     
    Author Jon Gjengset takes you deep into the Rust programming language, dissecting core topics like ownership, traits, concurrency, and unsafe code. You’ll explore key concepts like type layout and trait coherence, delve into the inner workings of concurrent programming and asynchrony with async/await, and take a tour of the world of no_std programming. Gjengset also provides expert guidance on API design, testing strategies, and error handling, and will help develop your understanding of foreign function interfaces, object safety, procedural macros, and much more.
     
    You'll Learn:

  • How to design reliable, idiomatic, and ergonomic Rust programs based on best principles
  • Effective use of declarative and procedural macros, and the difference between them
  • How asynchrony works in Rust – all the way from the Pin and Waker types used in manual implementations of Futures, to how async/await saves you from thinking about most of those words
  • What it means for code to be unsafe, and best practices for writing and interacting with unsafe functions and traits
  • How to organize and configure more complex Rust projects so that they integrate nicely with the rest of the ecosystem
  • How to write Rust code that can interoperate with non-Rust libraries and systems, or run in constrained and embedded environments
  •  
    Brimming with practical, pragmatic insights that you can immediately apply, Rust for Rustaceans helps you do more with Rust, while also teaching you its underlying mechanisms.

    What core themes, tropes, or subjects are explored in Rust for Rustaceans?

    Computing and Information Technology > Computer programming / software engineering

    Where can I read a sample of Rust for Rustaceans?

    You can read an official preview of the few pages here https://www.book2look.com/book/9781718501850

    Who is/are the Author/s of the book Rust for Rustaceans?

    Jon Gjengset

    Who is the Publisher of the book Rust for Rustaceans?

    No Starch Press

    What are the ISBN numbers for the physical and digital editions?

    Rust for Rustaceans is available as paperback(ISBN 9781718501850) and ebook(ISBN 9781718501867)

    Where can I buy Rust for Rustaceans online or support local independent bookshops?

    You can buy Rust for Rustaceans from below

    Where can I buy Rust for Rustaceans?