jagged

Crates.iojagged
lib.rsjagged
version0.2.0
sourcesrc
created_at2020-03-25 20:04:59.792879
updated_at2020-06-07 17:55:07.864307
descriptionjagged provides an API to read data entries from JAG archives.
homepage
repositoryhttps://github.com/hikilaka/jagged
max_upload_size
id222761
size90,421
Zack Penn (hikilaka)

documentation

README

Jagged

Jagged provides an API to read/write data entries to/from JAG archives.

Documentation

Documentation is hosted at docs.rs. It is somewhat incomplete as the library is still unstable.

Example

use anyhow::Result;
use jagged::{Archive, ReadWriteArchive};
use std::path::Path;

fn main() -> Result<()> {
    let mut archive = Archive::new();
    let data: Vec<u8> = include_bytes!("some_file").to_vec();
    let output_path = Path::new("archive.jag")?;

    let _ = archive.insert("some_name", data);

    archive.save(output_path)?;
}

For more examples see the examples directory of this repository.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Commit count: 5

cargo fmt