Skip to content

v0.1.0-beta.6

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Oct 17:15
· 17 commits to main since this release
69eb9a6

The sixth beta, which breaks code written for 0.1.0-beta.5: specification 0.1.0, tier 1, capabilities sync, async and testing, cases v0.1.0-rc.18. It implements proposal 0121, on copies that keep received data read-only, which itinera makes by cloning, and proposal 0122, on custom code that returns something its call cannot return, which Rust's types rule out, and on journey IDs, which are strings that are not empty. What a journey does is unchanged; only creating an instance whose ID generator produces an empty string now fails. The minimum supported Rust version is 1.85.

Added

  • journey::EmptyJourneyId, the error that making a journey ID from an empty string returns.
  • instance::InstanceError::EmptyJourneyId, which instance::InstanceBuilder::create returns when the workflow's ID generator produces an empty journey ID.
  • journey::JourneyId::into_inner, which gives a journey ID's text back as an Arc<str>, and AsRef<Arc<str>> on journey::JourneyId.

Changed

  • journey::JourneyId is a string that is not empty: it is made with JourneyId::try_from, from a &str, a String or an Arc<str>, or with JourneyId::try_new, from an Arc<str>, each refusing an empty string with journey::EmptyJourneyId, instead of JourneyId::from, which is gone.