Skip to content

v0.8.0: Track Spans for additional instructions

Latest
Compare
Choose a tag to compare
@spricet spricet released this 14 Dec 17:53
· 5 commits to master since this release
a3b7e52

What's Changed

Breaking Changes

  • Most instructions that contained a String payload now return a SpannedString struct that includes the Span information as well as the string contents. For now it implements Display and AsRef<str> but no other String-like utilities. String contents should be accessed directly by <spanned_string>.content. Span data is accessed by <spanned_string>.span.
  • Various Instructions now return their data as a combined SpannedString instead of separate String and Span fields. For example, the FromInstruction no longer uses f.image and f.image_span, but can be accessed as f.image.content and f.image.span
  • Span now implements Copy trait which might raise new lint warnings.

New Contributors

Thanks

  • @dsherret for implementing SpannedString features!
  • @jonmcquillan for enabling dependabot configuration and testing version bumps to get this project rolling again

Full Changelog: v0.7.1...v0.8.0-alpha.1