Skip to content

Releases: typst/ecow

Version 0.2.3

30 Oct 14:32
Compare
Choose a tag to compare
  • Added From<&EcoString> for EcoString (thanks to @idlercloud)
  • Added TryFrom<EcoVec<T>> for [T; N] (thanks to @kaikalii)
  • EcoString capacity now grows by 2x instead of +1 when spilling (16 -> 32 instead of 16 -> 17). When already spilled it already did 2x growth before.

Version 0.2.2

23 Mar 21:45
Compare
Choose a tag to compare
  • Added EcoVec::extend_from_trusted (thanks to @kaikalii)

Version 0.2.1

06 Mar 14:43
Compare
Choose a tag to compare
  • Added From<&String> for EcoString (thanks to @IanManske)
  • Improved internal pointer handling

Version 0.2.0

09 Oct 12:48
Compare
Choose a tag to compare
  • Added EcoString::make_mut for getting an &mut str
  • Added EcoString::{replace, replacen, to_ascii_lowercase, to_ascii_uppercase} which perform the respective operation and return an EcoString instead of a String. (Breaking change)
  • Added missing #[inline] annotation (thanks to @Kmeakin)
  • Fixed typos and marked one internal function unsafe (thanks to @hwjsnc)

Version 0.1.2

19 Aug 19:12
Compare
Choose a tag to compare
  • Marked EcoVec::{new, is_empty, len} as const fn (thanks to @Kmeakin)
  • Improved performance of EcoVec::from_elem and eco_vec! macro (thanks to @Kmeakin)
  • Switched to smarter internal representation of an empty EcoVec which simplifies the code and removes a potential branch in EcoVec::as_slice for types with huge alignment (thanks to @Kmeakin)
  • Added std feature (enabled by default) and impl std::io::Write for EcoVec<u8> guarded by it (thanks to @imbrem)

0.1.1

16 Apr 12:49
Compare
Choose a tag to compare
0.1.1 Pre-release
Pre-release

This release adds serde support. Thanks to @imbrem!

0.1

01 Mar 10:24
Compare
Choose a tag to compare
0.1 Pre-release
Pre-release

This is the initial release of ecow, a library with a compact, clone-write vector and string.