Re-exports§
pub use error::InvalidSlugError;pub use error::ModpkgError;
Modules§
Structs§
- Chunk
Key - The identity of a chunk: its path and the layer it belongs to.
- Chunk
Path - A chunk’s stored path: the authored casing, forward slashes.
- Distributor
Info - Information about the distributor site and mod ID.
- Extraction
Plan - Every chunk an unpack of a package writes, and where each one lands.
- Layer
Hash - The xxhash3 of a lowercased layer name.
- Layer
Index - A position in the package’s layer table.
- Modpkg
- Modpkg
Author - The author of a mod package.
- Modpkg
Chunk - A chunk’s table-of-contents record, as stored on disk.
- Modpkg
Decoder - Modpkg
Extractor - Extractor for ModPkg archives.
- Modpkg
Hashtable - One embedded hashtable, as the metadata declares it.
- Modpkg
Layer - Describes a layer in the mod package.
- Modpkg
Layer Metadata - Per-layer metadata that can be stored inside the mod package metadata.
- Modpkg
Metadata - The metadata of a mod package.
- Path
Hash - The xxhash64 of a chunk’s canonical path.
- Planned
Chunk - One chunk of a package, and where unpacking it puts it.
- Slug
- A lowercase, hyphen-separated identifier.
- WadIndex
- A position in the package’s WAD table.
- WadName
Hash - The xxhash3 of a lowercased WAD name.
Enums§
- Chunk
Destination - Where one chunk lands when it is unpacked.
- Modpkg
Compression - The compression type of a chunk.
- Modpkg
License
Constants§
- BASE_
LAYER_ NAME - The name of the base layer.
- CURRENT_
SCHEMA_ VERSION - Current metadata schema version.
- HASHES_
DIR_ NAME - The directory hashtables land under, beside the content.
- HASHTABLES_
CHUNK_ DIR - The chunk directory hashtable chunks are stored under.
- LICENSE_
CHUNK_ PATH - The path to the license text chunk.
- METADATA_
CHUNK_ PATH - The path to the info.msgpack chunk.
- METADATA_
FOLDER_ NAME - The name of the metadata folder inside the mod package.
- README_
CHUNK_ PATH - The path to the README.md chunk.
- THUMBNAIL_
CHUNK_ PATH - The path to the thumbnail chunk.
Functions§
- hashtable_
file_ name - The file name a
_meta_/hashes/chunk lands under, if it is one.
Type Aliases§
- Batch
Chunk Entry - A batch-loaded chunk entry: its key and decompressed data.