Talk
Registration required!
January 24, 2024
12:00 pm
12:45 pm
(CET)

Reasoning about Rust: an introduction to Rustdoc's JSON format

Powered by
No items found.

About the session

Macros are the primary mechanism for metaprogramming in Rust, either to perform code generation or enforce constraints at compile-time that are not easily captured by the type system (e.g. sqlx). Macros are also limited: their input is a stream of tokens, with no type-level information. Up until last year, you had to hook directly into the compiler internals to get a more featureful representation. This is no longer the case, thanks to Rustdoc's JSON format: an information-rich representation of your Rust API in a machine-parsable format (with a versioned schema!). We will introduce the feature, look at the structure of the data and cover a few of the usecases where it shines. You will leave the talk with a basic understanding of the format and ideas on how you could leverage it to build tools that enhance your own Rust workflows.

About the speaker

Luca Palmieri
Luca Palmieri
Principal Engineering Consultant at Mainmatter

Watch recording

Registration required!

Save your spot

24 Jan
,
12:00 pm
12:45 pm
(CET)
Save my spotSave my spotSave my spotSave my spot
Code of Conduct
WeAreDevelopers welcomes everyone and is dedicated to defending anybody from harassment, regardless of gender, gender identity, and expression, sexual orientation, disability, physical appearance, body size, race, age or religion.
Read more
Diversity & Inclusion
At the WeAreDevelopers Events we empower underrepresented groups by giving them the stage to share their knowledge and experiences. It is crucial for our international events to bring together the perspectives of people with different backgrounds.
Read more