#array-string #low-memory #string

no-std small-fixed-array

A crate providing fixed length immutable collections with a low memory footprint

17 releases

0.4.10 Oct 11, 2025
0.4.8 Feb 15, 2025
0.4.7 Dec 2, 2024
0.4.6 Nov 11, 2024
0.4.3 Mar 10, 2024

#427 in Data structures

Download history 358/week @ 2025-07-16 373/week @ 2025-07-23 214/week @ 2025-07-30 230/week @ 2025-08-06 148/week @ 2025-08-13 205/week @ 2025-08-20 392/week @ 2025-08-27 479/week @ 2025-09-03 286/week @ 2025-09-10 222/week @ 2025-09-17 244/week @ 2025-09-24 272/week @ 2025-10-01 545/week @ 2025-10-08 347/week @ 2025-10-15 230/week @ 2025-10-22 160/week @ 2025-10-29

1,388 downloads per month
Used in tracing-loki-but-better

MIT license

46KB
1K SLoC

small-fixed-array

See module documentation or use cargo doc --open.


lib.rs:

A crate for FixedArray and FixedString, types to provide a smaller memory footprint in exchange for:

These types provide cheap conversions to [Vec] and String, to make up for most of these downsides, but it is still not recommended to use these collections for mutated values as you will see a performance downside.

These can be thought of as Box<[T]> and Box<str>, except the length is denoted as LenT, by default [u32].

Features

MSRV

The Minimum Supported Rust Version of this crate is 1.70.

It is considered a breaking change to raise this.

Dependencies

~205KB