1 unstable release

0.1.0-alpha.1 Sep 5, 2025

#36 in #discrete-events

MIT/Apache

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 data
  • Model: 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 method
  • 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