Crates.io | grixy |
lib.rs | grixy |
version | 0.6.0-alpha.3 |
created_at | 2025-07-13 02:05:16.405204+00 |
updated_at | 2025-08-05 05:25:48.107254+00 |
description | Zero-cost 2D grids for embedded systems and graphics |
homepage | |
repository | https://github.com/crates-lurey-io/grixy |
max_upload_size | |
id | 1749897 |
size | 186,797 |
Zero-cost 2D grids focused on memory consumption and performance.
Grixy provides a set of traits and types for working with 2D grids, including
traits for reading and writing to grids, as well as implementations for common
buffer types based on linear arrays or vectors. The crate is no_std
compatible, and operates without a dynamic memory allocator; as a result
most1 APIs are lazily evaluated, returning or operating on iterators or
references rather than copying data around.
Possible use-cases include:
Grixy can be used for more complex operations like software blending or scaling:
cargo run --example mono-font-raster
This example:
png
crate) saves the pixel buffer as a PNG file, seen below.This project uses just
to run commands the same way as the CI:
cargo just check
to check formatting and lints.cargo just coverage
to generate and preview code coverage.cargo just doc
to generate and preview docs.cargo just test
to run tests.For a full list of commands, see the Justfile
.