#string #inline #heap-allocation #no-std

no-std istring

A replacement for String that allows storing short strings of length up to sizeof<String>() - 1 without a heap allocation

20 releases

0.3.4 Aug 30, 2023
0.3.3 Dec 27, 2022
0.3.2 May 16, 2022
0.2.2 Jan 25, 2021
0.1.5 Jul 23, 2017

#102 in Memory management

Download history 1230/week @ 2024-03-14 1429/week @ 2024-03-21 1226/week @ 2024-03-28 1198/week @ 2024-04-04 1104/week @ 2024-04-11 1263/week @ 2024-04-18 1313/week @ 2024-04-25 1255/week @ 2024-05-02 1043/week @ 2024-05-09 1238/week @ 2024-05-16 1108/week @ 2024-05-23 1243/week @ 2024-05-30 1047/week @ 2024-06-06 1038/week @ 2024-06-13 985/week @ 2024-06-20 1469/week @ 2024-06-27

4,678 downloads per month
Used in 8 crates (via pdf)

MIT license

43KB
1.5K SLoC

A replacement for String that allows storing strings of length up to sizeof() - 1 without a heap allocation

That means on 32bit machines: size_of::() == 12 bytes, inline capacity: 11 bytes on 64bit machines: size_of::() == 24 bytes, inline capacity: 23 bytes

Dependencies

~0–460KB
~11K SLoC