| Crates.io | nexosim-macros |
| lib.rs | nexosim-macros |
| version | 0.1.0-alpha.1 |
| created_at | 2025-09-05 15:31:32.389595+00 |
| updated_at | 2025-09-05 15:31:32.389595+00 |
| description | Internal macros for NeXosim simulator. |
| homepage | |
| repository | https://github.com/asynchronics/nexosim |
| max_upload_size | |
| id | 1825719 |
| size | 15,402 |
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 the Model trait and enables custom attributes:
#[nexosim(schedulable)]: - registers model's input method for self-scheduling#[nexosim(init)]: - marks implementation of the Model::init method#[nexosim(restore)]: - marks implementation of the Model::restore methodschedulable!: function-like proc-macro that allows for easy model self-schedulingCheck the examples directory to learn more about common use-cases.