| Crates.io | libsf3 |
| lib.rs | libsf3 |
| version | 0.1.0 |
| created_at | 2025-12-30 18:51:56.732569+00 |
| updated_at | 2025-12-30 18:51:56.732569+00 |
| description | Reads a .sf3 file |
| homepage | |
| repository | https://codeberg.org/minirop/libsf3 |
| max_upload_size | |
| id | 2013143 |
| size | 40,622 |
Library to read .sf3 (Simple File Format Family) files. See the spec and reference implementations at https://shirakumo.org/docs/sf3.
fn main() -> std::io::Result<()> {
// let filename = ...
let mut file = std::fs::File::open(filename)?;
let sf3_file = libsf3::Format::new(&mut file)?;
match sf3_file {
libsf3::Format::Archive(_files) => todo!(),
libsf3::Format::Audio(_audio) => todo!(),
libsf3::Format::Image(_image) => todo!(),
libsf3::Format::Log(_chunks) => todo!(),
libsf3::Format::Model(_model) => todo!(),
libsf3::Format::PhysicsModel(_physics_model) => todo!(),
libsf3::Format::Table(_columns) => todo!(),
libsf3::Format::Text(_text, _markups) => todo!(),
libsf3::Format::VectorGraphic(_vector_graphic) => todo!(),
}
}