unity_rs 0.1.0

unity assetbundle unpack
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;
#[derive(Error, Debug)]
pub enum UnityError {
    #[error("Eof")]
    Eof,
    #[error("Utf8")]
    Utf8(#[from] std::str::Utf8Error),
    #[error("InvalidValue")]
    InvalidValue,
    #[error("Lz4DecompressError: {0}")]
    Lz4DecompressError(#[from] lz4_flex::block::DecompressError),
    #[error("LzmaError: {0}")]
    LzmaError(#[from] lzma_rs::error::Error),
    #[error("Unimplemented")]
    Unimplemented,
}

pub type UnityResult<T> = Result<T, UnityError>;