| Crates.io | bzimage |
| lib.rs | bzimage |
| version | 0.1.0 |
| created_at | 2025-10-15 03:40:43.740012+00 |
| updated_at | 2025-10-15 03:40:43.740012+00 |
| description | A create for handling bzimage format, such as Linux kernel images. |
| homepage | https://github.com/rexlunae/bzimage |
| repository | https://github.com/rexlunae/bzimage |
| max_upload_size | |
| id | 1883628 |
| size | 22,077 |
bzimage is a small Rust crate that defines a compact on-disk container format for a gzip-compressed payload with a SHA-256 checksum. The format is deliberately simple:
Header layout (in bytes, little-endian for integer fields):
DMNZTotal header size: 64 bytes.
The crate exposes BzImageHeader and helper functions to read/write headers,
validate the checksum, and decompress the payload. See the tests/ directory for
examples of creating a header, writing it to a buffer, and validating/decompressing
the stored payload.
Example (high level):
compressed_size bytes, validate checksum,
then decompress.See the Rust docs in src/lib.rs for API details and the test suite for concrete
usage examples.