Skip to content

Releases: radekvit/pared

0.3.0

21 Apr 20:44
Compare
Choose a tag to compare
  • Change the API of try_* functions on Parc and Prc to take functions returning Result instead of Option and make them return Result instead of Option.

0.2.2

19 Jul 16:01
Compare
Choose a tag to compare

0.2.2

  • Switch TypeErasedArc and TypeErasedRc to use ManuallyDrop when converting the raw pointer into a concrete Arc<T>, Rc<T> or Weak<T> to avoid incorrect behavior in case any method we call panics. Previously, the temporary would be dropped even if it shouldn't have, causing potential UB (use after free).
  • Add Prc::try_from_rc, Prc::try_project, Parc::try_from_arc, and Parc::try_project. These are fallible versions of the same methods without try_, where the FnOnce that's passed to these functions returns an Option. This allows for using Prc and Parc where the projected reference might be unavailable.

0.2.1

16 Jul 20:06
Compare
Choose a tag to compare
  • Fix incorrect lifetime bounds in from_arc and from_rc
  • Correct doctests that catch the incorrect behavior to include from_arc and from_rc

0.2.0

16 Jul 19:39
Compare
Choose a tag to compare
  • Fix a soundness but where references to references returned in the projection functions weren't restricted by any lifetimes. Parc<T> and Prc<T> now require T: 'static when being constructed.

0.1.0

16 Jul 16:27
Compare
Choose a tag to compare

Initial release