norden.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Moin! Dies ist die Mastodon-Instanz für Nordlichter, Schnacker und alles dazwischen. Folge dem Leuchtturm.

Administered by:

Server stats:

3.4K
active users

#proc_macro

0 posts0 participants0 posts today
cehteh<p>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!</p><p>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.</p><p><a href="https://docs.rs/xmacro/latest/xmacro/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">docs.rs/xmacro/latest/xmacro/</span><span class="invisible"></span></a></p><p><a href="https://social.tchncs.de/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a> <a href="https://social.tchncs.de/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> <a href="https://social.tchncs.de/tags/proc_macro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>proc_macro</span></a></p>
Anas :rust: :archlinux: :tux:​<p>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.</p><p>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 :)</p><p>Introducing todo2 - A better <code>todo!</code> macro inspired by searls/todo_or_die</p><p>This crate provides a better <code>todo!</code> macro, which allows you to specify the deadline and the conditions when the code should be implemented.<br>and when the condition or the deadline is met, the code will panic or emit a compile error, or just log an error.</p><p><a href="https://github.com/0x61nas/todo2" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/0x61nas/todo2</span><span class="invisible"></span></a></p><p>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</p><p>hope you found it useful</p><p><strong><a href="https://infosec.exchange/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a></strong> <strong><a href="https://infosec.exchange/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a></strong> <strong><a href="https://infosec.exchange/tags/todo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>todo</span></a></strong> <strong><a href="https://infosec.exchange/tags/proc_macro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>proc_macro</span></a></strong> <strong><a href="https://infosec.exchange/tags/rust_macro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust_macro</span></a></strong> <strong><a href="https://infosec.exchange/tags/rust_crate" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust_crate</span></a></strong></p>