27 releases (2 stable)

1.0.1 Apr 20, 2026
1.0.0 Aug 31, 2025
0.18.0 Jun 17, 2025
0.16.1 Feb 4, 2025
0.1.1 Dec 23, 2017

#124 in Data structures

Download history 125131/week @ 2026-03-02 131563/week @ 2026-03-09 123076/week @ 2026-03-16 129688/week @ 2026-03-23 135302/week @ 2026-03-30 134344/week @ 2026-04-06 145668/week @ 2026-04-13 170695/week @ 2026-04-20 164297/week @ 2026-04-27 190895/week @ 2026-05-04 203590/week @ 2026-05-11 216668/week @ 2026-05-18 202076/week @ 2026-05-25 223913/week @ 2026-06-01 280021/week @ 2026-06-08 247213/week @ 2026-06-15

978,039 downloads per month
Used in 1,178 crates (23 directly)

MIT license

150KB
3K SLoC

Grid

docs crates.io build status license

Data structure grid for rust. Provide a two dimensional data structure for rust that is easy to use and fast. Most of the functionality provided by the std::vec::Vec type for one dimensional vectors is implemented for two dimensions in this crate.

To use grid with no_std import the library such as:

grid = { version = "*", default-features = false }

Safety checks

The CI in .github/workflows/rust.yml runs the test suite under Miri to catch undefined behavior in exercised code paths.

To run the same check locally:

rustup toolchain install nightly --component miri
cargo +nightly miri setup
cargo +nightly miri test --verbose

Dependencies

~135KB