Files
craft-libs/crates/android-res/src/lib.rs
T
Brandon Thomas bfdaa2b71d android-res: share AXML and ARSC wire readers
Extract the Craft Anything implementation at 8cec25d without changing limits or data models. Retain provenance for subsequent Afloat, BFlat, and RRFZ changes in the crate README.
2026-11-22 12:23:37 -05:00

18 lines
494 B
Rust

//! Bounded readers for compiled Android XML and resource tables.
pub mod arsc;
pub mod axml;
mod bytes;
#[cfg(test)]
mod fixtures;
/// Failure to decode the Android wire format.
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum Error {
/// A required record did not fit within the available bytes.
#[error("truncated: {0}")]
Truncated(String),
/// The available bytes do not form the required structure.
#[error("malformed: {0}")]
Malformed(String),
}