#rust #Procedural #macros #атрибутные #макросы #derive-макросы #функциональные #макросы #proc_macro #syn
Origin | Interest | Match
Live and recent posts from across the Fediverse tagged #proc_macro, aggregated by home.social.
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.
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.
https://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