| Crates.io | unxip-rs |
| lib.rs | unxip-rs |
| version | 0.1.1 |
| created_at | 2025-09-01 00:23:34.515397+00 |
| updated_at | 2025-09-12 01:49:33.190633+00 |
| description | Extract XIP Archives |
| homepage | |
| repository | https://github.com/nab138/unxip-rs |
| max_upload_size | |
| id | 1818989 |
| size | 57,550 |
A library for extracting .xip files, written in Rust.
Note that it uses the cpio command. You can specify a custom path to cpio if needed. Many cpio extractors have been tested and only GNU cpio works.
fn main() {
let mut file = File::open("./Xcode_16.3.xip").unwrap();
let res = unxip(&mut file, &PathBuf::from("./output"), None /* Uses "cpio" from PATH */);
if let Err(e) = res {
eprintln!("{}", e);
}
println!("Done");
}