Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jam1garner/sarc
A simple to use library for reading/writing SARC and SZS (yaz0 compressed SARCs) in Rust
https://github.com/jam1garner/sarc
Last synced: 4 days ago
JSON representation
A simple to use library for reading/writing SARC and SZS (yaz0 compressed SARCs) in Rust
- Host: GitHub
- URL: https://github.com/jam1garner/sarc
- Owner: jam1garner
- Created: 2020-02-07T20:03:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T21:03:58.000Z (about 2 years ago)
- Last Synced: 2025-01-03T02:54:02.288Z (5 days ago)
- Language: Rust
- Homepage:
- Size: 25.4 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sarc
A simple to use library for reading/writing SARC and SZS (yaz0 compressed SARCs) in Rust.
```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();
```