rx_core_macro_work_derive

Crates.iorx_core_macro_work_derive
lib.rsrx_core_macro_work_derive
version0.2.0
created_at2026-01-19 00:23:00.093957+00
updated_at2026-01-24 14:58:12.451108+00
descriptionrx_core work derive, implements associated type only traits
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2053368
size7,860
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

macro_work_derive

crates.io ci codecov license

Helper macro to implement a few traits required for a Work.

Traits you still have to implement to get a Work

  • ScheduledWork

Traits Implemented

  • WorkContextProvider: Using the type provided with #[rx_context]
  • WithWorkInputOutput: Using the type provided with #[rx_tick]

Attributes

All attributes are prefixed with rx_ for easy auto-complete access.

  • #[rx_context]: The context type that is passed to the work when polled.
  • #[rx_tick]: The tick type of work this scheduler can accept

See Also

Expanding the proc macro

In case you want to inspect the output of the proc macro.

If you haven't installed cargo-expand yet, install it first:

cargo install cargo-expand

Then expand the macro output:

cargo expand -p rx_core_observable_interval
Commit count: 652

cargo fmt