mirror of
https://github.com/storytold/craft-libs.git
synced 2026-12-01 02:36:54 +01:00
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.
18 lines
494 B
Rust
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),
|
|
}
|