#string #inline #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

#231 in Memory management

Download history 883/week @ 2023-06-06 623/week @ 2023-06-13 504/week @ 2023-06-20 630/week @ 2023-06-27 589/week @ 2023-07-04 647/week @ 2023-07-11 470/week @ 2023-07-18 482/week @ 2023-07-25 570/week @ 2023-08-01 441/week @ 2023-08-08 611/week @ 2023-08-15 485/week @ 2023-08-22 457/week @ 2023-08-29 663/week @ 2023-09-05 439/week @ 2023-09-12 425/week @ 2023-09-19

2,060 downloads per month
Used in 9 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–425KB