1 unstable release
| 0.1.0-alpha.1 | Sep 5, 2025 |
|---|
#36 in #discrete-events
15KB
296 lines
NeXosim macros
This crate contains proc-macros utilized by the nexosim crate.
Currently it provides:
Message: derive macro which enables schema generation for the server endpoint dataModel: proc-macro which implements theModeltrait and enables custom attributes:#[nexosim(schedulable)]: - registers model's input method for self-scheduling#[nexosim(init)]: - marks implementation of theModel::initmethod#[nexosim(restore)]: - marks implementation of theModel::restoremethod
schedulable!: function-like proc-macro that allows for easy model self-scheduling
Check the examples directory to learn more about common use-cases.
Dependencies
~155–560KB
~13K SLoC