rs2cache/lib.rs
1use archive::cache_archive::CacheArchive;
2use group::GroupError;
3use std::collections::HashMap;
4use store::Store;
5
6mod archive;
7pub mod cache;
8pub mod checksumtable;
9mod djb2;
10mod ffi;
11mod group;
12mod js5_compression;
13mod js5_index;
14pub mod js5_masterindex;
15pub mod store;
16mod xtea;
17
18const _MAX_GROUP_SIZE: usize = (1 << 24) - 1;
19
20pub struct Cache {
21 /// Store
22 pub store: Box<dyn Store>,
23
24 /// Archives
25 archives: HashMap<u8, CacheArchive>,
26
27 /// Unpacked cache size
28 _unpacked_cache_size: usize,
29}