Module assets

Expand description

Deterministic cooked bundles with bounded parsing and transactional hot reload. The original RLE codec is intended for flat-color assets, not general-purpose compression. Each bundle permits 4096 paths (240 bytes each) and 64 MiB of decoded payload. Retained Arc readers keep old generations alive; the limit is per bundle, not global. Checksums detect corruption and provide no authentication or encryption. Checked lookups normalize authoring paths; legacy operations and the wire format continue to require canonical paths. Checked live updates validate before publication. Bundle::manifest exposes sorted, borrowed metadata for tooling without encoding a bundle or copying its payloads.

Structs§

AssetEditError
The first failed edit. Earlier edits in the transaction were rolled back.
AssetManifestEntry
Read-only metadata for one asset, produced by Bundle::manifest.
Bundle
BundleDiff
Sorted content changes from one bundle generation to the next.
LiveBundle
Existing readers retain their Arc until the next successful reload is adopted.

Enums§

AssetError
AssetLookupError
A checked lookup failure, with the requested path or canonical asset name.
BundleUpdateError
A rejected live update. The active bundle and generation remain unchanged. E is the application’s validation error, often AssetLookupError.

Functions§

normalize_path
Normalize a relative authoring path without consulting the filesystem.