| Crates.io | nx-archive |
| lib.rs | nx-archive |
| version | 0.1.2 |
| created_at | 2025-03-23 12:09:44.698623+00 |
| updated_at | 2025-03-27 21:49:24.766203+00 |
| description | Rust library for working with Nintendo Switch filesystems and archives |
| homepage | |
| repository | https://github.com/RyouVC/nx-archive |
| max_upload_size | |
| id | 1602627 |
| size | 1,669,835 |
nx-archive is a Rust library for working with various Nintendo archive formats.
It provides an idiomatic Rust interface, and helper traits and functions for working with the various formats.
nx-archive supports the following formats:
It plans to support all other Nintendo archive formats in the future, including but not limited to:
After adding nx-archive to your Cargo.toml, you can use it like so:
use nx_archive::formats::pfs0::Pfs0;
use nx_archive::formats::nca::Nca;
use nx_archive::formats::hfs0::Hfs0;
use std::fs::File;
fn main() {
let nsp_file = File::open("path/to/file.nsp").unwrap();
let pfs0 = Pfs0::from_reader(nsp_file).unwrap();
for file in pfs0.list_files().unwrap() {
println!("File: {}", file.name);
}
}