| Crates.io | ironflow-macros |
| lib.rs | ironflow-macros |
| version | 0.1.0 |
| created_at | 2026-01-15 18:58:08.189127+00 |
| updated_at | 2026-01-15 18:58:08.189127+00 |
| description | Procedural macros for the ironflow workflow engine |
| homepage | https://github.com/sparkmill/ironflow |
| repository | https://github.com/sparkmill/ironflow |
| max_upload_size | |
| id | 2046312 |
| size | 9,986 |
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.
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.