android_sparse/
lib.rs

1//! An implementation of Android's sparse file format.
2//!
3//! Enables reading and writing sparse images, as well as encoding from and
4//! decoding to raw images:
5//!
6//! ```text
7//!  --------               --------                -------
8//! | sparse | --Reader--> | sparse | --Decoder--> | raw   |
9//! | image  | <--Writer-- | blocks | <--Encoder-- | image |
10//!  --------               --------                -------
11//! ```
12
13#![deny(missing_docs)]
14
15pub mod block;
16pub mod read;
17pub mod result;
18pub mod write;
19
20mod ext;
21mod headers;
22
23pub use self::{
24    block::Block,
25    read::{Encoder, Reader},
26    result::Result,
27    write::{Decoder, Writer},
28};