2 unstable releases
0.2.0 | Aug 29, 2021 |
---|---|
0.1.0 | Aug 16, 2020 |
#72 in Data formats
10KB
159 lines
rpak
Simple no_std-compatible helper for the Quake 2 PAK format.
Library usage
Add to your Cargo.toml
:
rpak = "0.2"
The "std" feature is enabled by default, for no_std environments (only where
alloc
is available), use:
rpak = { version = "0.2", default-features = false }
To load an archive:
use rpak::PakArchive;
let mut data: Vec<u8> = Vec::new();
let _ = File::open("data.pak")?.read_to_end(&mut data)?;
let archive = PakArchive::from_bytes(&data[..])?;
assert!(archive.files.len() > 0);
License
MIT
lib.rs
:
Simple no_std-compatible helper for the Quake 2 PAK format.
Dependencies
~115KB