5 releases

1.0.0-beta.5 Oct 8, 2024
1.0.0-beta.4 May 27, 2022
1.0.0-beta.3 Nov 10, 2021
1.0.0-beta.2 Aug 19, 2021
1.0.0-beta.1 Aug 18, 2021

#864 in Encoding

Download history 6/week @ 2024-07-23 4/week @ 2024-07-30 1/week @ 2024-09-24 2/week @ 2024-10-01 158/week @ 2024-10-08 1/week @ 2024-10-15

162 downloads per month

BSL-1.0 license

47KB
1K SLoC

stroka

Crates.io Documentation Build

Small String optimization for Rust.


lib.rs:

String implementation optimized for small sized strings(at most length mem::size_of::<usize>() * 2 - 2)

Features

  • serde - Enables Serialize and Deserialize implementations.
  • std - Enables traits implementations dependent on std.

Missing functions

  • String::from_utf8 - due to minivec yet to be stable.
  • String::from_utf8_unchecked - due to minivec yet to be stable.
  • String::into_bytes - due to minivec yet to be stable.
  • Unstable functions of String - due to them being potentially changed.
  • String::from_raw_parts - cannot be implemented due to internal structure.

Dependencies

~115–275KB