Repository navigation
v0.1.0-beta.4
Pre-release
Pre-release
·
39 commits
to main
since this release
The fourth beta, which breaks code written for 0.1.0-beta.3: specification 0.1.0, tier 1, capabilities sync, async and testing, cases v0.1.0-rc.16. It implements proposal 0116, on two input adapters with one name and on an input adapter or service provider attached to one step twice, and proposal 0119, on mistakes in choosing a scripted run's attempts. It does not claim the capability value-conversions, which holds every case of proposal 0113, since itinera keeps a value as it is and reads it back by its exact type, calling no conversion. The minimum supported Rust version is 1.85.
Added
event::Supplier, the input adapter, with the key it was resolving, or the service provider that failed while a step was built.workflow::Violation::DuplicateAdapterNameandworkflow::ViolationKind::DuplicateAdapterName:workflow::WorkflowBuilder::buildreports two input adapters with the same name instead ofworkflow::WorkflowBuilder::input_adapterpanicking.
Changed
event::JourneyAbort::StepCouldNotBeBuiltreplaces itsproviderfield withsupplier, anOption<event::Supplier>, which holdsSupplier::Providerwhereproviderheld a service provider's name.workflow::InputAdapterDescriptor::stepandservice::ServiceProviderDescriptor::stepno longer ignore a step they are already attached to;workflow::WorkflowBuilder::buildreportsworkflow::Violation::StepAdaptedTwiceorworkflow::Violation::ServiceProvidedTwice, naming the adapter or provider once per attachment.- The compile errors of
#[workflow]for two input adapters of one name, and for an adapter or provider listing a step twice, name the violationsduplicate adapter name,step adapted twiceandservice provided twice.
Fixed
journey_abortednames the input adapter that failed and the key of the input it was resolving, inevent::JourneyAbort::StepCouldNotBeBuilt.- With the
testingfeature,instance::StepScripting::on_attemptnames an attempt the step can never have, such as attempt 0 or one past what it can have, before an attempt scripted already or a gap, and every panic ofinstance::StepScriptingin choosing attempts names the step and the attempt.