ataraxy-macros

Crates.ioataraxy-macros
lib.rsataraxy-macros
version0.1.1
sourcesrc
created_at2022-03-31 01:18:24.542711
updated_at2022-04-05 01:46:44.562655
descriptionProc-macros for Ataraxy
homepage
repositoryhttps://github.com/ImpossibleReality/ataraxy
max_upload_size
id559452
size16,273
Johan Novak (ImpossibleReality)

documentation

README

Macro Crate

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

IDE Support

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.

Commit count: 34

cargo fmt