{"product_id":"write-powerful-rust-macros","title":"Write Powerful Rust Macros","description":"\u003cp\u003e\u003cstrong\u003eA\u003c\/strong\u003e\u003cb\u003e\u003cstrong\u003en \u003c\/strong\u003eexample-driven, step-by-step guide to success with Rust macros.\u003c\/b\u003e\u003c\/p\u003e\u003cp\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.\u003c\/p\u003e\u003cp\u003eInside \u003ci\u003eWrite Powerful Rust Macros\u003c\/i\u003e you’ll discover:\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003e\u003cspan class=\"a-list-item\"\u003eWriting declarative macros\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan class=\"a-list-item\"\u003eProcedural macros\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan class=\"a-list-item\"\u003eReading and debugging macro code\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan class=\"a-list-item\"\u003eImproving the type system with newtypes and zero-sized types\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan class=\"a-list-item\"\u003eHow common Rust libraries use macros\u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\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.\u003c\/p\u003e\u003cp\u003ePurchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eAbout the technology\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003eMacros 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.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eAbout the book\u003c\/b\u003e\u003c\/p\u003e\u003cp\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.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eWhat's inside\u003c\/b\u003e\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003e\u003cspan class=\"a-list-item\"\u003eHow Rust libraries use macros\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan class=\"a-list-item\"\u003eReading and debugging macro code\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan class=\"a-list-item\"\u003enewtypes and the type state pattern\u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\u003e\u003cb\u003eAbout the reader\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003eFor intermediate Rust programmers.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eAbout the author\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003e\u003cb\u003eSam Van Overmeire\u003c\/b\u003e is an experienced Rust developer and the author of multiple books, scientific articles and blog posts.\u003c\/p\u003e\u003cp\u003eThe technical editor on this book was \u003cb\u003eAndrew Lilley Brinker\u003c\/b\u003e.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eTable of contents\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003e1 Going meta\u003cbr\u003e2 Declarative macros\u003cbr\u003e3 A “Hello, World” procedural macro\u003cbr\u003e4 Making fields public with attribute macros\u003cbr\u003e5 Hiding information and creating mini-DSLs with function-like macros\u003cbr\u003e6 Testing a builder macro\u003cbr\u003e7 From panic to result: Error handling\u003cbr\u003e8 Builder with attributes\u003cbr\u003e9 Writing an infrastructure DSL\u003cbr\u003e10 Macros and the outside world\u003c\/p\u003e\u003cp\u003e\u003cb\u003eEbook License\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003eEnd-User Warranty And License Agreement\u003c\/p\u003e\u003cp\u003e1. Grant Of License\u003c\/p\u003e\u003cp\u003eManning Has Authorized The Download By You Of An Unrestricted Number Of Copies Of The Electronic Book (Ebook) In Any Of The Available Formats. Manning Grants You A Nonexclusive, Nontransferable License To Use The Ebook According To The Terms And Conditions Herein. This License Agreement Permits You To Install The Ebook On Any And All Your Devices For Your Personal Use Only.\u003c\/p\u003e\u003cp\u003e2. Restrictions\u003c\/p\u003e\u003cp\u003eYou Shall Not: (1) Share, Resell, Rent, Assign, Timeshare, Distribute, Or Transfer All Or Part Of The Ebook Or Any Rights Granted Hereunder To Any Other Person; (2) Duplicate The Ebook, Except For A Single Backup Or Archival Copy; (3) Remove Any Proprietary Notices, Labels, Or Marks From The Ebook; (4) Transfer Or Sublicense Title To The Ebook To Any Other Party.\u003c\/p\u003e\u003cp\u003e3. Intellectual Property Protection\u003c\/p\u003e\u003cp\u003eThe Ebook Is Owned By Manning And Is Protected By United States And International Copyright And Other Intellectual Property Laws. Manning Reserves All Rights In The Ebook Not Expressly Granted Herein. This License And Your Right To Use The Ebook Terminate Automatically If You Violate Any Part Of This Agreement. In The Event Of Termination, You Must Remove The Original And Any Copies Of The Ebook From All Your Devices.\u003c\/p\u003e\u003cp\u003e4. Source Code Supplementary Material\u003c\/p\u003e\u003cp\u003eAny Source Code Files Provided As A Supplement To The Book Are Freely Available To The Public For Download. Reuse Of The Code Is Permitted, In Whole Or In Part, Including The Creation Of Derivative Works, Provided That You Acknowledge That You Are Using It And Identify The Source: Title, Publisher And Year.\u003c\/p\u003e\u003cp\u003e5. Limited Warranty\u003c\/p\u003e\u003cp\u003eManning Warrants That The Ebook Files, A Copy Of Which You Are Authorized To Download, Are Free From Defects In The Operational Sense That They Can Be Read By A Pdf Reader Or Epub Reader, Or Other. Except For This Express Limited Warranty, Manning Makes And You Receive No Warranties, Express, Implied, Statutory Or In Any Communication With You, And Manning Specifically Disclaims Any Other Warranty Including The Implied Warranty Of Merchantability Or Fitness Or A Particular Purpose. Manning Does Not Warrant That The Operation Of The Ebook Will Be Uninterrupted Or Error Free. If The Ebook Was Purchased In The United States, The Above Exclusions May Not Apply To You As Some States Do Not Allow The Exclusion Of Implied Warranties. In Addition To The Above Warranty Rights, You May Also Have Other Rights That Vary From State To State.\u003c\/p\u003e\u003cp\u003e6. Limitation Of Liability\u003c\/p\u003e\u003cp\u003eIn No Event Will Manning Be Liable For Any Damages, Whether Arising For Tort Or Contract, Including Loss Of Data, Lost Profits, Or Other Special, Incidental, Consequential, Or Indirect Damages Arising Out Of The Use Or Inability To Use The Ebook.\u003c\/p\u003e\u003cp\u003e7. General\u003c\/p\u003e\u003cp\u003eThis Agreement Constitutes The Entire Agreement Between You And Manning And Supersedes Any Prior Agreement Concerning The Ebook. This Agreement Is Governed By The Laws Of The State Of New York.\u003c\/p\u003e\u003cp\u003e\u003cbr\u003e\u003c\/p\u003e","brand":"Manning Publications","offers":[{"title":"Paperback","offer_id":50506376839238,"sku":"9781633437494","price":5129.0,"currency_code":"INR","in_stock":true},{"title":"E-Book","offer_id":50506376872006,"sku":"9781633437494-2","price":4939.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0754\/2797\/1142\/files\/713R2zmSz4L._SY425.jpg?v=1790328637","url":"https:\/\/cb-india.com\/products\/write-powerful-rust-macros","provider":"Computer Bookshop (India) Pvt Ltd","version":"1.0","type":"link"}