home.social

#proc_macro — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #proc_macro, aggregated by home.social.

fetched live
  1. DX в процедурных макросах на Rust Привет, Хабр! Сегодня поговорим про процедурные макросы как про инструмент р...

    #rust #Procedural #macros #атрибутные #макросы #derive-макросы #функциональные #макросы #proc_macro #syn

    Origin | Interest | Match
  2. I released a new version of xmacro/xmacro_lib. Xmacros simplify code generation and templating repetitive things. Empathizing code-as-data and making source code easier to maintain. Eg. you may like it for generating tests!

    This release has a breaking change in the syntax and may now be even more easy and straightforward to use. This is probably the last breaking change. Only additional features will come soon.

    docs.rs/xmacro/latest/xmacro/

    #rustlang #rust #proc_macro

  3. Okay, there is a potential bug here?, hmm, just write a TODO comment and fix it later........ after two years, oh what's this comment for? I don't remember maybe just delete it.

    This scenario must happen to all of us at least once in our careers, and we all know that later never comes, at least if our boss doesn't track the TODO comments :)

    Introducing todo2 - A better todo! macro inspired by searls/todo_or_die

    This crate provides a better todo! macro, which allows you to specify the deadline and the conditions when the code should be implemented.
    and when the condition or the deadline is met, the code will panic or emit a compile error, or just log an error.

    github.com/0x61nas/todo2

    I know the name isn't that cool, but we all know that naming is hard especially when comes to trying to find a cool one that isn't reserved on crates.io

    hope you found it useful

    #rust #rustlang #todo #proc_macro #rust_macro #rust_crate

Share on Mastodon

Enter the server where you have an account.