{"product_id":"write-powerful-rust-macros-9781633437494","title":"Write Powerful Rust Macros","description":"\u003cb\u003eAn example-driven, step-by-step guide to success with Rust macros.\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003eIn \u003ci\u003eWrite Powerful Rust Macros\u003c\/i\u003e you'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. \u003cp\u003e\u003c\/p\u003eInside \u003ci\u003eWrite Powerful Rust Macros\u003c\/i\u003e you'll discover: \u003cp\u003e\u003c\/p\u003e \u003cul\u003e \u003cli\u003eWriting declarative macros\u003c\/li\u003e \u003cli\u003eProcedural macros\u003c\/li\u003e \u003cli\u003eReading and debugging macro code\u003c\/li\u003e \u003cli\u003eImproving the type system with newtypes and zero-sized types\u003c\/li\u003e \u003cli\u003eHow common Rust libraries use macros\u003c\/li\u003e \u003c\/ul\u003e \u003cbr\u003e\u003ci\u003eWrite Powerful Rust Macros\u003c\/i\u003e teaches 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. \u003cp\u003e\u003c\/p\u003ePurchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications. \u003cp\u003e\u003c\/p\u003e \u003cb\u003eAbout the technology\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003e 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. \u003cp\u003e\u003c\/p\u003e \u003cb\u003eAbout the book\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003e \u003ci\u003eWrite Powerful Rust Macros\u003c\/i\u003e opens 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. \u003cp\u003e\u003c\/p\u003e \u003cb\u003eWhat's inside\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003e \u003cul\u003e \u003cli\u003eHow Rust libraries use macros\u003c\/li\u003e \u003cli\u003eReading and debugging macro code\u003c\/li\u003e \u003cli\u003enewtypes and the type state pattern\u003c\/li\u003e \u003c\/ul\u003e \u003cp\u003e\u003c\/p\u003e\u003cb\u003eAbout the reader\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003e For intermediate Rust programmers. \u003cp\u003e\u003c\/p\u003e \u003cb\u003eAbout the author\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003e \u003cb\u003eSam Van Overmeire\u003c\/b\u003e is an experienced Rust developer and the author of multiple books, scientific articles and blog posts. \u003cp\u003e\u003c\/p\u003eThe technical editor on this book was \u003cb\u003eAndrew Lilley Brinker\u003c\/b\u003e. \u003cp\u003e\u003c\/p\u003e \u003cb\u003eTable of contents\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003e 1 Going meta\u003cbr\u003e 2 Declarative macros\u003cbr\u003e 3 A \"Hello, World\" procedural macro\u003cbr\u003e 4 Making fields public with attribute macros\u003cbr\u003e 5 Hiding information and creating mini-DSLs with function-like macros\u003cbr\u003e 6 Testing a builder macro\u003cbr\u003e 7 From panic to result: Error handling\u003cbr\u003e 8 Builder with attributes\u003cbr\u003e 9 Writing an infrastructure DSL\u003cbr\u003e 10 Macros and the outside world\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAbout the Author\u003c\/b\u003e\u003cbr\u003e\u003cb\u003eSam Van Overmeire\u003c\/b\u003e is a software developer with a background in history and archaeology. He is the author of multiple books, scientific articles and blog posts.\u003cbr\u003e","brand":"Manning Publications","offers":[{"title":"Default Title","offer_id":50501149589778,"sku":"9781633437494","price":55.99,"currency_code":"USD","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0831\/4771\/8930\/files\/img_71a8dc1c-0701-4f8f-a779-6276eccf4454.jpg?v=1730767099","url":"https:\/\/surprise-castle.myshopify.com\/products\/write-powerful-rust-macros-9781633437494","provider":"Surprise Castle","version":"1.0","type":"link"}