Summary

In this chapter, we started with metaprogramming by learning about attributes and macros. Both of them will help you write less code and make sure that you get the best possible implementation for trivial details.

We then learned about nightly Rust and how some nightly features give us new language extensions that can greatly help improve the efficiency, performance, and clarity of our code.

In the next chapter, we will see how crates in crates.io bring new macros and plugins to the ecosystem, and we will go through the most-used ones that improve the performance and development time for your applications.

Get Rust High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.