ironflow-macros 0.1.0

Procedural macros for the ironflow workflow engine
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 9.46 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 293.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • sparkmill/ironflow
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • moshensky

Ironflow macros

ironflow-macros provides helper derives and utilities that simplify wiring workflows into the Ironflow runtime. The main derive is HasWorkflowId, which infers each workflow input's identifier field so the runtime can route events and timers reliably.

Example

use ironflow_macros::HasWorkflowId;

#[derive(HasWorkflowId)]
#[workflow_id(order_id)]
enum OrderInput {
    Create { order_id: String, customer: String },
    Cancel { order_id: String },
}

The derive inspects the provided field and implements HasWorkflowId so you can safely pass enums like OrderInput to the runtime without re-implementing ID plumbing.