rpak

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

Library usage

Add to your Cargo.toml:

toml rpak = "0.1"

The "std" feature is enabled by default, for no_std environments (only where alloc is available), use:

toml rpak = { version = "0.1", default-features = false }

To load an archive:

```rust use rpak::PakArchive;

let mut data: Vec = Vec::new(); let _ = File::open("data.pak")?.readtoend(&mut data)?;

let archive = PakArchive::from_bytes(&data[..])?; assert!(archive.files.len() > 0); ```

License

MIT