rpak 0.2.0

Simple no_std-compatible helper for the Quake 2 PAK format
Documentation

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