This will be an online meetup with no specific agenda however we are happy to accept submissions for talks if any.

Anyone interested in Rust is welcomed to join. While we will have no specific agenda, attendees can discuss, speak or ask about

  • Get help or clarification on any specific topic or question
  • Speak about project or something you are working or looking to work on
  • Share any specific experience on using Rust in any of your projects
  • Discuss any book/topic/library/blog in Rust
  • Want to propose a reading group?
  • Anything Rust

Hosted by

A community of rust-lang contributors and end-users from Bangalore. We also have presence on the following telegram channels https://t.me/RustIndia https://t.me/keralars https://t.me/fpncr Twitter handle: https://twitter.com/rustlangin more

Swarnim Arun

@swarnimarun

Et tu `macro_rules!`

Submitted Feb 7, 2023

Using declarative macros(as in macro_rules!) can be challenging, and knowing when to use them is perhaps even harder. So let’s take some real-world examples and discuss how you can use rust macros to write your mini-DSLs for simplifying a lot of the boilerplate Rust might force upon you.

While discussing writing a simple library using macros, we shall take a tour of the popular design patterns for writing robust hygienic macros and figure out the best places to use them in Rust. And also perhaps understand the desire for macros_2.0.

We will take a gander at their limitations and the cases where you perhaps should avoid them.
Maybe even discuss how you can use them to make your async code less verbose. (no promises though :P)

Swarnim Arun
Rust Engineer @ DeepSource

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

A community of rust-lang contributors and end-users from Bangalore. We also have presence on the following telegram channels https://t.me/RustIndia https://t.me/keralars https://t.me/fpncr Twitter handle: https://twitter.com/rustlangin more