5 releases (breaking)
Uses new Rust 2024
| 0.5.0 | Aug 16, 2025 |
|---|---|
| 0.4.0 | Dec 10, 2024 |
| 0.3.0 | Dec 10, 2024 |
| 0.2.0 | Dec 10, 2024 |
| 0.1.0 | Nov 1, 2024 |
#1261 in Compression
204 downloads per month
12KB
212 lines
inline-str
inline-str is a small and cheaply cloned string type, intended for use in cases where you expect to be cloning the same somewhat short string many times.
It is a thin layer over inline-array inspired by @spacejam's work who suggested I build this crate a while back.
Contributions
I implemented things that seem obviously useful to me, but would love to accept PRs to introduce more functionality people would fine useful.
Alternatives
The are many crates with similar design and purpose, and I highly encourage you to use the one that you like the most:
- compact_str
- inlinable_string
- hipstr
- imstr
- Any many, many others
License
This work is dual-licensed under Apache 2.0 and MIT. You can choose between one of them if you use this work.
SPDX-License-Identifier: Apache-2.0 OR MIT
Dependencies
~195KB