remozipsy 0.0.1

zip implementation independent structs and helpers
Documentation
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct RemoteFileInfo {
    // TODO use cd directly
    pub crc32: u32,
    pub compressed_size: u32,
    pub uncompressed_size: u32,
    pub compression_method: u16,
    pub file_name: String,
    pub start_offset: u32,

    /// calculated, its not simple `start_offset + compressed_size` because the
    /// `start_offset` points to the LocalHeader of "unknown" size.
    /// this is inclusive End!
    pub end_offset_inclusive: u64,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct LocalFileInfo {
    /// with stripped prefix
    pub local_unix_path: String,
    /// It's recommended to use `crc32fast::hash`
    pub crc32: u32,
}