Crates.io | ataraxy-macros |
lib.rs | ataraxy-macros |
version | 0.1.1 |
source | src |
created_at | 2022-03-31 01:18:24.542711 |
updated_at | 2022-04-05 01:46:44.562655 |
description | Proc-macros for Ataraxy |
homepage | |
repository | https://github.com/ImpossibleReality/ataraxy |
max_upload_size | |
id | 559452 |
size | 16,273 |
The macro crate exports the command macro, as well as IDE support macros to improve development experience with command types.
Note: It isn't recommended to use this crate directly but rather to use the re-exported command macro in the main create
Because the #[command]
macro changes function signatures, some IDEs do not track this (looking at you CLion), and report subsequent Framework::command(cmd)
calls as invalid. To fix this I added a procedural macro in the crate that changes the signature of the Framework::command
function from Any
to an acceptable command type.