ironflow-macros

Crates.ioironflow-macros
lib.rsironflow-macros
version0.1.0
created_at2026-01-15 18:58:08.189127+00
updated_at2026-01-15 18:58:08.189127+00
descriptionProcedural macros for the ironflow workflow engine
homepagehttps://github.com/sparkmill/ironflow
repositoryhttps://github.com/sparkmill/ironflow
max_upload_size
id2046312
size9,986
Nikita Moshenskiy (moshensky)

documentation

https://docs.rs/ironflow-macros

README

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.

Commit count: 0

cargo fmt