just-string 2025.12.5

Container for various kinds of strings
Documentation
  • Coverage
  • 0%
    0 out of 7 items documented0 out of 1 items with examples
  • Size
  • Source code size: 11.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.7 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Magicloud

Just String

This is a container to hold various kinds of strings in Rust, for user who does not care about the (performance) differences in his case.

And trying to be transparent, which means user does not have to extract the string out to use them.

Right now it holds String, &String, &str, Cow<'_, str>. The implementation does not support creating a new string, or mutating to original strings. And in some cases, it may introduce extra memory allocation underneath, by which I mean String::clone().