Write Powerful Rust Macros(1st Edition)

Authors:

Sam Van Overmeire

Type:Hardcover/ PaperBack / Loose Leaf
Condition: Used/New

In Stock: 2 Left

Shipment time

Expected shipping within 2 - 3 Days
Access to 35 Million+ Textbooks solutions Free
Ask Unlimited Questions from expert AI-Powered Answers 30 Min Free Tutoring Session
7 days-trial

Total Price:

$0

List Price: $46.72 Savings: $46.72 (100%)
Access to 30 Million+ solutions
Ask 50 Questions from expert AI-Powered Answers 24/7 Tutor Help Detailed solutions for Write Powerful Rust Macros

Price:

$9.99

/month

Book details

ISBN: 1633437493, 978-1633437494

Book publisher: Manning

Book Price $0 : An Example-driven, Step-by-step Guide To Success With Rust Macros.In Write Powerful Rust Macros 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. Inside Write Powerful Rust Macros You’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 Macros 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. Purchase Of The Print Book Includes A Free EBook In PDF And EPub Formats From Manning Publications. 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 Macros 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. What's Inside How 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 Overmeire Is An Experienced Rust Developer And The Author Of Multiple Books, Scientific Articles And Blog Posts. The Technical Editor On This Book Was Andrew 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