Skip to content

Latest commit

 

History

History
86 lines (51 loc) · 2.73 KB

File metadata and controls

86 lines (51 loc) · 2.73 KB

0.4.10

  • Fixes FixedString<u32>::from_static_trunc iterating down from u32::MAX.
  • Improves the Debug implementation for FixedString.
  • Implements From<FixedString> for Box<str>.
  • Improves the From<Cow<'_, str>> for FixedString implementation to always borrow static FixedStrings.

Thanks to Joshix-1 and DPlayer234 on GitHub for these improvements.

0.4.9 (yanked)

  • Implements TryFrom<Vec<T>> for FixedArray<T>, and TryFrom<String> for FixedString.
  • Fixes FixedString::from_static_trunc panicking on char boundaries when truncating.
  • Implements From<char> for FixedString.

Thanks to Joshix-1 on GitHub for these improvements.

0.4.8

  • Fixes FixedArray<ZST, LenT>::is_empty, as it was not updated after the NonZero optimisation was removed.

0.4.7

  • Removes a useless NonZero optimisation, fixing FixedArray<ZST, LenT>.

0.4.6

  • Implements conversions from FixedArray and FixedString to Cow::Borrowed

0.4.5

  • Implements ToArrayString for FixedString<u8> under a feature gate.

0.4.4

  • Documents Minimum Supported Rust Version

0.4.3

  • Implements std::error::Error for InvalidLength and InvalidStrLength.

0.4.2

  • Implements FromStr for FixedString.

0.4.1

  • Implements clone_from for FixedString and FixedArray.

0.4

  • Removes the Index<usize> implementation from FixedArray.
  • Implements a &'static str variant of FixedString created with FixedString::from_str_static.

0.3

  • Returns LenT from FixedArray::len and FixedString::len, instead of u32.
  • Implements indexing a FixedArray with LenT, alongside the usize indexing implementation.
  • Implements no-std support, with an optional std feature enabled by default.
  • Implements Borrow<str> for FixedString, allowing a HashMap of FixedString to be looked up via &str.

0.2.1

  • Improves FixedString to gain another SSO inline character. This comes at a tiny CPU performance hit that can be counteracted with the nightly feature.
  • Improves FixedString deserialisation to take advantage of SSO more.
  • Implements From<[T]; 0..=16> for FixedArray.

0.2

  • Redesigns the API to make truncation explicit, either via from_*_trunc or trunc_into.

0.1.3

  • Implements From<Cow<'_, str/[T]>> for FixedString/Array, returning Owned Cows.
  • Implements TryFrom<Box<str>> for FixedString, to allow constructing it without logging features.
  • Implements SSO for FixedString, reducing allocations and shrinking memory usage.
  • Reduces compile time more, with more logic split out of generics.

0.1.2

  • Reduces compile time by splitting logic out of generics.
  • Attempts to fix documentation on docs.rs not showing features.

0.1.1

  • Fix compilation with only serde feature enabled.