Crate hive_asar

Source
Expand description

Asynchronous parser and writer for Electron’s asar archive format.

Requires Tokio runtime.

Currently supported:

  • Parse archive from file or async reader
  • Pack archive from multiple readers, or conveniently from a folder.

Currently not supported:

  • Write and check integrity (planned)
  • Unpacked files (planned)
  • FileMetadata::executable (not planned, it is up to you whether use it or not)

Modules§

header
Structures that describes asar’s header.

Structs§

Archive
Generic asar archive reader.
DuplicableFilefs
TokioFile with path that implements Duplicable.
File
File from an asar archive.
Writer
Asar archive writer.

Traits§

Duplicable
Ability to duplicate asynchronously.
LocalDuplicable
Ability to duplicate asynchronously without Sync.

Functions§

check_asar_format
Checks if a file is in asar format by reading and checking first 16 bytes.
pack_dirfs
Pack a directory to asar archive.
pack_dir_into_streamstream
pack_dir_into_writerfs