Skip to content

v0.1.0-beta.4

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Oct 02:37
· 39 commits to main since this release
0a88681

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::DuplicateAdapterName and workflow::ViolationKind::DuplicateAdapterName: workflow::WorkflowBuilder::build reports two input adapters with the same name instead of workflow::WorkflowBuilder::input_adapter panicking.

Changed

  • event::JourneyAbort::StepCouldNotBeBuilt replaces its provider field with supplier, an Option<event::Supplier>, which holds Supplier::Provider where provider held a service provider's name.
  • workflow::InputAdapterDescriptor::step and service::ServiceProviderDescriptor::step no longer ignore a step they are already attached to; workflow::WorkflowBuilder::build reports workflow::Violation::StepAdaptedTwice or workflow::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 violations duplicate adapter name, step adapted twice and service provided twice.

Fixed

  • journey_aborted names the input adapter that failed and the key of the input it was resolving, in event::JourneyAbort::StepCouldNotBeBuilt.
  • With the testing feature, instance::StepScripting::on_attempt names 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 of instance::StepScripting in choosing attempts names the step and the attempt.