Write Powerful Rust Macros [#978748]

Free Download Write Powerful Rust Macros
by SAM VAN OVERMEIRE
English | 2024 | ISBN: 1633437493 | 322 pages | True PDF | 10.16 MB
An example-driven, step-by-step guide to success with Rust macros.
InWrite Powerful Rust Macrosyou'll learn how to use these amazing metaprogramming tools to push Rust to its full potential. This hands-on guide takes you from the absolute basics to advanced macro techniques, exploring Rust macros through interesting and engaging examples.
InsideWrite Powerful Rust Macrosyou'll discover:
Writing declarative macrosProcedural macrosReading and debugging macro codeImproving the type system with newtypes and zero-sized typesHow common Rust libraries use macros
Write Powerful Rust Macrosteaches you how to write, test, debug, and publish macros for Rust. It's perfect for Rust practitioners who want to master this powerful development technique. Build your knowledge chapter-by-chapter. You'll start with declarative macros before diving into the real power: procedural macros that can generate code, augment data structures, and even create domain-specific languages.
About the technology
Macros are one of Rust's most important and powerful tools. Although notoriously challenging, this metaprogramming technique has a big payoff. Using macros to generate new Rust code at compile-time can save you hours of tedious coding with negligible runtime performance impact. This book shows you exactly how to master this Rust superpower.
About the book
Write Powerful Rust Macrosopens up the world of macros to intermediate Rust programmers. You'll start with declarative macros to get the basics under your belt. Then, you'll advance to procedural macros as you automatically generate a builder, learn to create your own domain-specific languages, and more. As you go, you'll develop practical skills like testing macros, integrating macros with crates, and even sharing your macros with other developers.
What's insideHow Rust libraries use macrosReading and debugging macro codenewtypes and the type state pattern
About the reader
For intermediate Rust programmers.
About the author
Sam Van Overmeireis an experienced Rust developer and the author of multiple books, scientific articles and blog posts.
The technical editor on this book wasAndrew Lilley Brinker.
Table of contents
1 Going meta
2 Declarative macros
3 A "Hello, World" procedural macro
4 Making fields public with attribute macros
5 Hiding information and creating mini-DSLs with function-like macros
6 Testing a builder macro
7 From panic to result: Error handling
8 Builder with attributes
9 Writing an infrastructure DSL
10 Macros and the outside world
Buy Premium From My Links To Get Resumable Support,Max Speed & Support Me
Rapidgator
3si0r.7z.html
DDownload
3si0r.7z
FreeDL
3si0r.7z.html
AlfaFile
3si0r.7z
⚠️ Dead Link ?
You may submit a re-upload request using the search feature.
All requests are reviewed in accordance with our Content Policy.
Significant surge in the popularity of free ebook download platforms. These virtual repositories offer an unparalleled range, covering genres that span from classic literature to contemporary non-fiction, and everything in between. Enthusiasts of reading can easily indulge in their passion by accessing free books download online services, which provide instant access to a wealth of knowledge and stories without the physical constraints of space or the financial burden of purchasing hardcover editions.
Comments (0)
Users of Guests are not allowed to comment this publication.