Skip to content

0.4.0

Compare
Choose a tag to compare
@maciejhirsz maciejhirsz released this 18 Mar 19:23
· 24 commits to master since this release
8c05a0d
  • Fixed a memory leak in beef::lean::Cow, found thanks to Miri and @RalfJung.
  • Added impl_serde feature which provides a Serialize and Deserialize trait implementations.
  • Added is_borrowed and is_owned methods.
  • beef::Cow<'a, T> is now a type alias to beef::generic::Cow<'a, T, Wide> where Wide is private. This doesn't change anything, merely hides Option<NonZeroUsize> as implementation detail and makes errors more readable.
  • Due to internal refactoring, const_fn feature now adds two separate functions instead of one: const_str and const_slice for borrowing &'static str and &'static [T] respectively. This is the only breaking change this release.