feat(wfe-core): make WorkflowBuilder steps and last_step fields public

Needed by wfe-deno to build workflow definitions via ops without
going through the pub(crate) StepBuilder constructor.
This commit is contained in:
2026-04-05 22:05:04 +01:00
parent ead883f714
commit afb91c66bd

View File

@@ -28,8 +28,8 @@ pub type InlineClosureBox = Box<dyn Fn() -> ExecutionResult + Send + Sync>;
/// .build("my-workflow", 1);
/// ```
pub struct WorkflowBuilder<D: WorkflowData> {
pub(crate) steps: Vec<WorkflowStep>,
pub(crate) last_step: Option<usize>,
pub steps: Vec<WorkflowStep>,
pub last_step: Option<usize>,
/// Inline closures keyed by step id, stored for later registration.
pub(crate) inline_closures: HashMap<usize, InlineClosureBox>,
_phantom: PhantomData<D>,