Are macros unreadable just for me?
⚓ Rust 📅 2025-11-18 👤 surdeus 👁️ 12Something I'm running into right now.
Say: axum_login - Rust
There they jam a login_required! macro in the middle of the code. Not entirely sure what Backend is but, it's possible to figure that out with a bunch of clicking around.
But this breaks my code entirely. Here's what my editor shows.
This is not Rust code.
This is the "documentation" of the macro: login_required in axum_login - Rust
How am I supposed to figure out the types of what goes in and what comes out of this?
Also given how macros are only briefly touched upon in any Rust book, it's a bit discouraging to see them strewn around anywhere and everywhere.
3 posts - 3 participants
🏷️ Rust_feed
