Crates.io | caff-archive |
lib.rs | caff-archive |
version | 0.1.0 |
source | src |
created_at | 2023-11-28 02:40:06.6411 |
updated_at | 2023-11-28 02:40:06.6411 |
description | a library for manipulating CAFF archives |
homepage | |
repository | https://github.com/vtubing/caff-archive |
max_upload_size | |
id | 1051535 |
size | 31,023 |
A library for working with binary CAFF archives. This is the format used for .cmo3
and .can3
files.
Run the following Cargo command in your project directory (assuming you have cargo-edit installed):
cargo add caff-archive
Or add the following line to your Cargo.toml
(in the [dependencies]
array):
caff-archive = "^ 0.1"
fn main() {
let mut file = File::open(&archive).expect("failed to open archive for reading");
let mut archive = caff_archive::Archive::read(&mut file).expect("failed to read archive from input data");
}
logging
enables tracing and debugging logs when reading and writing archives.discovery
implies logging
and enables additional logging of potentially
interesting scenarios, from the perspective of this library. It will report
things like raw values that were parsed into fallback values in enums, or data
sections that are expected to be padding but contain non-zero bytes, along
with different potential ways those bytes could be parsed, among other things.caff-archive
is available under the MIT License. See LICENSE.txt
for the full text.
While the license is short, it's still written in fancy lawyer-speak. If you prefer more down-to-earth language, consider the following: