Available on crate feature
v1 only.Expand description
Parsing code for v1 of the WEBC format.
Structs§
- Checksum
- Calculated checksum of the file
- Error
- The error type used within the read module.
- FsEntry
- Directory or file entry, parsed without any allocation
- Owned
FsEntry Dir - Owned version of the
FsEntrywithfs_type = FsEntryType::Dir - Owned
FsEntry File - Owned version of the
FsEntrywithfs_type = FsEntryType::File - Parse
Options - Options on what to parse from the file
- Recursive
FsEntry Dir - Signature
- Signature of the checksum of the file, such that
verify(WebC::get_checksum(), public_key)is valid - Volume
- Filesystem volume, containing the uncompressed files in an ordered directory structure
- Volume
Header - Header of a filesystem volume, describing a serialized list of directories and file paths
- Volume
Iterator - Iterator over the paths in the file, yields PathBufs until all files in the volume have been listed.
- WebC
- Container file, lazily parsed from a set of
&'data [u8]bytes - WebC
Mmap - Memory-mapped version of the WebC file that
carries its data along the parsed
WebC<'static> - WebC
Owned - Owned version of the WebC file that carries its data
along the parsed
WebC<'static>
Enums§
- DirOr
File - Specifies whether an input path is a directory or a file (since this distinction can’t be made from the filename alone)
- DirOr
File With Bytes - FsEntry
Type - Whether the file is a directory or a file
- Generate
Checksum - Whether to sign the bytes when deserializing the WebC file to bytes
- Owned
FsEntry - Same as
FsEntrybut with an ownedtext: String, instead of a&str - Package
Info - Information about the package name
- Recursive
FsEntry
Functions§
- pack_
directory - webc_
temp_ dir - Since
env::temp_dir()panics on wasm32-wasi, this function provides a non-panicking replacement
Type Aliases§
- FileMap
- Read
Result - The result type used within the read module.