asar-explorer

Crates.ioasar-explorer
lib.rsasar-explorer
version0.1.0
sourcesrc
created_at2022-12-04 18:58:45.295178
updated_at2022-12-04 18:58:45.295178
descriptionA trait that adds capability to unpack electron .asar file(s).
homepage
repositoryhttps://github.com/CatUniversity/asar-explorer/
max_upload_size
id729703
size5,577
Han Seung Min - 한승민 (arHSM)

documentation

README

asar-explorer

Trait to unpack an electron .asar file which implements [std::io::Read].

Usage

Given an asar file named foo.asar

use std::fs::File;

use asar_explorer::Asar;

fn main() -> std::io::Result<()> {
    let mut file = File::open("foo.asar");
    let headers = file.get_headers()?;
    file.unpack_files(&headers, "./foo", None)?;

    Ok(())
}

The above sample will unpack all files into a relative directory called foo.

And that's about it.

Commit count: 1

cargo fmt