rpak

Crates.iorpak
lib.rsrpak
version0.2.0
sourcesrc
created_at2020-08-16 02:14:25.336338
updated_at2021-08-29 02:58:21.027874
descriptionSimple no_std-compatible helper for the Quake 2 PAK format
homepagehttps://github.com/u1f408/rpak
repositoryhttps://github.com/u1f408/rpak
max_upload_size
id277099
size13,231
the iris system (u1f408)

documentation

README

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

Commit count: 5

cargo fmt