| Crates.io | sarc |
| lib.rs | sarc |
| version | 1.2.0 |
| created_at | 2020-02-07 21:27:41.911089+00 |
| updated_at | 2022-12-22 21:03:56.209843+00 |
| description | A library for working with Nintendo SARC files for Wii U, 3ds and Switch |
| homepage | |
| repository | https://github.com/jam1garner/sarc |
| max_upload_size | |
| id | 206195 |
| size | 26,147 |
A simple to use library for reading/writing SARC and SZS (yaz0 compressed SARCs) in Rust.
// yaz0 and non-yaz0 sarcs can be read the same way
let sarc = SarcFile::read_from_file("Animal_Fish_A.sbactorpack").unwrap();
// iterate through files in the sarc and print out a file list
for file in &sarc.files {
println!("Name: {:?} | Size: {}", file.name, file.data.len());
}
// write as yaz0 compressed sarc
sarc.write_to_compressed_file("animal_test.sarc").unwrap();