nexosim-macros

Crates.ionexosim-macros
lib.rsnexosim-macros
version0.1.0-alpha.1
created_at2025-09-05 15:31:32.389595+00
updated_at2025-09-05 15:31:32.389595+00
descriptionInternal macros for NeXosim simulator.
homepage
repositoryhttps://github.com/asynchronics/nexosim
max_upload_size
id1825719
size15,402
Serge Barral (sbarral)

documentation

README

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.

Commit count: 302

cargo fmt