#hyper #static #resources #http #web

web-static-pack-common

Common types for web-static-pack and web-static-pack-packer crates

2 releases

0.5.0-beta.2 Jul 6, 2024
0.5.0-beta.1 Jul 5, 2024

#119 in #hyper

Download history 148/week @ 2024-06-30 60/week @ 2024-07-07 5/week @ 2024-07-14 26/week @ 2024-07-28 2/week @ 2024-08-25 2/week @ 2024-09-01 17/week @ 2024-09-15 15/week @ 2024-09-22 27/week @ 2024-09-29 1/week @ 2024-10-06

60 downloads per month

MIT license

9KB
72 lines

web-static-pack-common

Common crate, containing types shared between web-static-pack and web-static-pack-packer.

For a project documentation, examples, etc. see web-static-pack.

The root type of this crate is pack::Pack. It's a collection (a hashmap) of files file::File distinguished by pack_path::PackPath (a custom type for path including some sanity checks).

web-static-pack uses [rkyv] for serialization. Each module provides a rust native type, used during pack building, ex. pack::Pack and [rkyv] macro-generated zero-copy loadable (aka. mmapable) representation, eg. pack::PackArchived, used by loader.

Note

There are also things called Resolver (eg. pack::PackResolver), that are needed internally by [rkyv], but are not used directly in this project. They should be hidden from docs.

License: MIT

Dependencies

~2.5MB
~57K SLoC