#yaz0 #nintendo #wii #3ds

bin+lib sarc

A library for working with Nintendo SARC files for Wii U, 3ds and Switch

7 stable releases

1.2.0 Dec 22, 2022
1.1.4 Nov 17, 2020
1.1.2 Jun 15, 2020
1.1.1 Mar 18, 2020
1.0.1 Feb 9, 2020

#68 in Games

Download history 4/week @ 2022-11-25 4/week @ 2022-12-02 15/week @ 2022-12-09 16/week @ 2022-12-16 31/week @ 2022-12-23 6/week @ 2022-12-30 8/week @ 2023-01-06 3/week @ 2023-01-13 11/week @ 2023-01-20 15/week @ 2023-01-27 33/week @ 2023-02-03 77/week @ 2023-02-10 64/week @ 2023-02-17 51/week @ 2023-02-24 20/week @ 2023-03-03 50/week @ 2023-03-10

196 downloads per month

MIT license

20KB
477 lines

sarc

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();

lib.rs:

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();

Features

yaz0_sarc - support reading/writing yaz0-compressed sarc files zstd_sarc - support reading/writing yaz0-compressed sarc files

Dependencies

~1.4–2.4MB
~51K SLoC