Тёмный

Writing Rust Procedural Macros 

Rust and Cpp Cardiff Meetup
Подписаться 1,7 тыс.
Просмотров 4,6 тыс.
50% 1

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.
This talk is a follow on from a previous talk on declarative macros: • Rust Declarative Macro...
Useful links:
- Proc macro workshop - github.com/dto...
- Blog on testing proc macros - ferrous-system...
- Crust of Rust Proc Macros videos - • Procedural Macros in R...
- Jetbrains Proc Macros under the hood blog posts (parts i & ii) blog.jetbrains...
Presenter(s): Ciara
Meetup info:
This was a recording of a meetup on 10th August 2022. Join our meetup group for more information about future events: www.meetup.com...
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

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@CjqNslXUcM
@CjqNslXUcM 3 месяца назад
this is much better than some of the other videos
@JavaPro-oi5fi
@JavaPro-oi5fi Год назад
Thank you so much for the detailed walkthrough. If possible, please can you provide code repo link?
@craigrodrigues3435
@craigrodrigues3435 2 года назад
Very detailed presentation/walkthrough. Nice job!
Далее
Introduction to Async in Rust
46:02
Просмотров 6 тыс.
БАГ ЕЩЕ РАБОТАЕТ?
00:26
Просмотров 96 тыс.
Writing your own rust 'book' with mdBook
41:34
Просмотров 1,9 тыс.
Ace Rust Macros ♠️ the declarative kind
14:06
Просмотров 39 тыс.
OOP 2024: Rust Memory Management Introduction
57:05
Просмотров 1,4 тыс.
A First Look at Lifetimes in Rust
17:58
Просмотров 3,2 тыс.
The Art of Code - Dylan Beattie
1:00:49
Просмотров 4,7 млн
rust macros are magic
14:02
Просмотров 47 тыс.
Crust of Rust: Declarative Macros
1:36:11
Просмотров 66 тыс.
Tom Kunc - Playing with Proc Macro Magic
15:44
"Type-Driven API Design in Rust" by Will Crichton
40:57