mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-20 08:34:04 +01:00
Following on from the last commit, I jumped on the Rust Community Discord and @danielhenrymantilla was kind enough to show me a working example of how an optional macro argument can be used together with cfg_attr to conditionally add a doc comment. I took his example and reworked it a little, in the process refactoring all the macros in the komorebic crate to give them a sense of internal consistency.