Expand description
Library for collecting and packing resources into a bundle with a manifest file which describes those resources.
A Bundle
contains a Manifest
as well as any number of arbitrary,
opaque resources in the form of ResourceBytes
.
A Bundle can be serialized and written to a file.
A Bundle can also be packed and unpacked,
via the "packing"
feature.
Bundle packing is performed by following the Location
s specified in the
Manifest as “Bundled”, and pulling them into the Bundle that way.
Unpacking is done by specifying a target directory and creating a new file
for each resource at a relative path specified by the Manifest.
Modules§
Structs§
- A Manifest bundled together, optionally, with the Resources that it describes. This is meant to be serialized for standalone distribution, and deserialized by the receiver.
- A manifest bundled together, optionally, with the Resources that it describes. The manifest may be of any format. This is useful for deserializing a bundle of an outdated format, so that it may be modified to fit the supported format.
- Arbitrary opaque bytes representing a Resource in a
Bundle
Enums§
- Where to find a Resource.
Traits§
- A Manifest describes the resources in a
Bundle
and how to pack and unpack them.
Functions§
- Decompress and deserialize some bytes (inverse of
encode
) - Get compressed bytes from some serializable data