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.
- Duplicable
File fs
TokioFile
with path that implementsDuplicable
.- File
- File from an asar archive.
- Writer
- Asar archive writer.
Traits§
- Duplicable
- Ability to duplicate asynchronously.
- Local
Duplicable - 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_
dir fs
- Pack a directory to asar archive.
- pack_
dir_ into_ stream stream
- pack_
dir_ into_ writer fs