Добавить в избранное
Форум
Правила сайта "Мир Книг"
Группа в Вконтакте
Подписка на книги
Правообладателям
Найти книгу:
Навигация
Вход на сайт
Регистрация



Реклама



Название: Rust Power Tools (MEAP v1)
Автор: Sam Van Overmeire
Издательство: Manning Publications
Год: 2023
Язык: английский
Формат: pdf, epub, mobi
Размер: 10.1 MB

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 Rust Power Tools 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

Rust Power Tools 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. In this unique book, you’ll explore Rust macros through interesting and engaging examples, including automatically generating a ‘builder’ and composing a DSL for writing Infrastructure as Code.

about the book
Rust Power Tools 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.

Among the many powerful tools that Rust has to offer, macros are some of the most important and common. They serve as "a light in dark places, when all other lights go out", to be used when normal tools don’t suffice. That of itself is enough to make macros a core topic of this book. They have another neat quality though: they can be a "`pathway to many abilities`", as the emperor would put it. When you want to write a macro, you need knowledge of testing and debugging. You have to know how to set up a library because you cannot write a procedural macro without creating a library. Some knowledge about Rust internals, compilation, types, code organization, pattern matching, parsing… also comes in handy. Thus learning about macros allows me to talk about a variety of other programming topics! So we will be learning about Rust macros and using them to explore other subjects. Procedural macros, specifically, will take center stage because they are powerful and versatile… and you can already find a lot of useful content on declarative macros!

about the reader
For intermediate Rust programmers.

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.

Скачать Rust Power Tools (MEAP v1)







ОТСУТСТВУЕТ ССЫЛКА/ НЕ РАБОЧАЯ ССЫЛКА ЕСТЬ РЕШЕНИЕ, ПИШИМ СЮДА!







Автор: Ingvar16 28-07-2023, 20:43 | Напечатать |
 
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.





С этой публикацией часто скачивают:

Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.


 MirKnig.Su  ©2024     При использовании материалов библиотеки обязательна обратная активная ссылка    Политика конфиденциальности