Writing Rust Procedural Macros

preview_player
Показать описание
This session, we walk through procedural macros, showing some of the great tooling available like cargo expand for understanding the code generated, and the crates used for writing our own.

We cover expanding other peoples macros, creating our own very simple derive macros, and building up more complex macros using repeat patterns in quote. We also cover basic error reporting, making use of item spans to ensure we report the errors in the correct place.

Useful links:

Presenter(s): Ciara

Meetup info:
You can also find us on discord, drop us a message to be sent the link

Big thank you to Esri for sponsoring our meetup page
Рекомендации по теме
Комментарии
Автор

this is much better than some of the other videos

CjqNslXUcM
Автор

Very detailed presentation/walkthrough. Nice job!

craigrodrigues
Автор

Thank you so much for the detailed walkthrough. If possible, please can you provide code repo link?

JavaPro-oifi