5 stable releases

3.0.0 Apr 21, 2022
2.0.0 Apr 16, 2022
1.1.0 Dec 4, 2021
1.0.1 Aug 13, 2021

#1331 in Data structures

Download history 246339/week @ 2025-12-04 235509/week @ 2025-12-11 137512/week @ 2025-12-18 29072/week @ 2025-12-25 139093/week @ 2026-01-01 300595/week @ 2026-01-08 330606/week @ 2026-01-15 409762/week @ 2026-01-22 355697/week @ 2026-01-29 251801/week @ 2026-02-05 202146/week @ 2026-02-12 287887/week @ 2026-02-19 312578/week @ 2026-02-26 313052/week @ 2026-03-05 244342/week @ 2026-03-12 71780/week @ 2026-03-19

1,003,187 downloads per month
Used in 103 crates (2 directly)

MPL-2.0 license

17KB
229 lines

brownstone

A library for safely constructing statically sized arrays


lib.rs:

brownstone is a library for building fixed-size arrays. It provides build, a macro that builds an array by evaluating an expression once for each element in the array. It also provides a low-level builder type, with a push + finish interface, as well as a misuse-immune builder type with a move-based interface that can never panic or return errors.

Dependencies

~66KB