Items related to Write Powerful Rust Macros

Write Powerful Rust Macros - Softcover

  • 4.67 out of 5 stars
    9 ratings by Goodreads
 
9781633437494: Write Powerful Rust Macros

Synopsis

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 macros
  • Procedural macros
  • Reading and debugging macro code
  • Improving the type system with newtypes and zero-sized types
  • How 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 macros
  • Reading and debugging macro code
  • newtypes 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

"synopsis" may belong to another edition of this title.

About the Author

Sam Van Overmeire is a software developer with a background in history and archaeology. He is the author of multiple books, scientific articles and blog posts.

From the Back Cover

From the Back Cover:

Write Powerful Rust Macros is a comprehensive guide to creating macros in Rust. You'll start your journey with declarative macros, then quickly move on to the powerful procedural macros to build your own domain-specific language. Learn how to create public fields, work with custom attributes, integrate your macros with other crates, write effective tests to ensure your macros are reliable and bug-free, and even share your macros with other developers.

About the reader:

For intermediate Rust programmers.

"About this title" may belong to another edition of this title.

Buy Used

Condition: As New
Unread book in perfect condition...
View this item

US$ 2.64 shipping within U.S.A.

Destination, rates & speeds

Search results for Write Powerful Rust Macros

Stock Image

Sam Van Overmeire
Published by Simon and Schuster, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
New Softcover

Seller: INDOO, Avenel, NJ, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 9781633437494

Contact seller

Buy New

US$ 52.57
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Seller Image

Van Overmeire, Sam
Published by Manning, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
Used Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: As New. Unread book in perfect condition. Seller Inventory # 47481962

Contact seller

Buy Used

US$ 49.94
Convert currency
Shipping: US$ 2.64
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Van Overmeire, Sam
Published by Simon and Schuster, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
Used Softcover

Seller: INDOO, Avenel, NJ, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: As New. Unread copy in mint condition. Seller Inventory # SS9781633437494

Contact seller

Buy Used

US$ 52.59
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Seller Image

Van Overmeire, Sam
Published by Manning, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
New Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 47481962-n

Contact seller

Buy New

US$ 49.96
Convert currency
Shipping: US$ 2.64
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Sam Van Overmeire
Published by Pearson Education, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
New HRD

Seller: PBShop.store US, Wood Dale, IL, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

HRD. Condition: New. New Book. Shipped from UK. Established seller since 2000. Seller Inventory # PB-9781633437494

Contact seller

Buy New

US$ 58.27
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 15 available

Add to basket

Stock Image

Van Overmeire, Sam
Published by Manning, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
New Softcover

Seller: Best Price, Torrance, CA, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. SUPER FAST SHIPPING. Seller Inventory # 9781633437494

Contact seller

Buy New

US$ 53.34
Convert currency
Shipping: US$ 8.98
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Seller Image

Sam Van Overmeire
Published by Manning Publications, US, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
New Hardcover

Seller: Rarewaves USA, OSWEGO, IL, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Hardback. Condition: New. Supercharge your code with macros, the real power tools of the Rust programming language!Macros are instructions to generate new Rust code at compile-time, saving you hours of tedious code writing. The top Rust developers have built macros into everything from the standard library to crates. Now you can learn how these amazing power tools will help you push Rust to its full potential. This hands-on guide takes you from the absolute basics to advanced macro techniques.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. Seller Inventory # LU-9781633437494

Contact seller

Buy New

US$ 65.83
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 10 available

Add to basket

Stock Image

Van Overmeire, Sam
Published by Manning, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
New Softcover

Seller: California Books, Miami, FL, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # I-9781633437494

Contact seller

Buy New

US$ 66.00
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 7 available

Add to basket

Stock Image

Sam Van Overmeire
Published by Pearson Education, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
New HRD

Seller: PBShop.store UK, Fairford, GLOS, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

HRD. Condition: New. New Book. Shipped from UK. Established seller since 2000. Seller Inventory # PB-9781633437494

Contact seller

Buy New

US$ 62.29
Convert currency
Shipping: US$ 6.85
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: 15 available

Add to basket

Stock Image

Sam Overmeire
Published by Manning Publications, New York, 2024
ISBN 10: 1633437493 ISBN 13: 9781633437494
New Hardcover

Seller: Grand Eagle Retail, Mason, OH, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Hardcover. Condition: new. Hardcover. Supercharge your code with macros, the real power tools of the Rust programming language!Macros are instructions to generate new Rust code at compile-time, saving you hours of tedious code writing. The top Rust developers have built macros into everything from the standard library to crates. Now you can learn how these amazing power tools will help you push Rust to its full potential. This hands-on guide takes you from the absolute basics to advanced macro techniques.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. Shipping may be from multiple locations in the US or from the UK, depending on stock availability. Seller Inventory # 9781633437494

Contact seller

Buy New

US$ 71.69
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

There are 23 more copies of this book

View all search results for this book