5 unstable releases
0.5.0 | Aug 29, 2022 |
---|---|
0.4.1 | May 26, 2022 |
0.4.0 | Apr 24, 2022 |
0.3.1 | Feb 6, 2022 |
0.3.0 | Nov 5, 2021 |
#32 in #web-server
155 downloads per month
Used in 9 crates
(4 directly)
84KB
2K
SLoC
Kvarn utils
This is a collection of HTTP utilities used in the Kvarn web server.
Some miscellaneous Rust utilities are also housed here.
See doc.kvarn.org for the most up-to-date docs.
lib.rs
:
Utility functions for web application development.
This includes
- commonly used [
chars
], - a [
build_bytes
] macro to create a [Bytes
] from bytes slices with one allocation, - [
WriteableBytes
] to optimize performance when creating a new [Bytes
] of unknown length, - [
hardcoded_error_body
] to get a hard-coded error response. - [
CleanDebug
] and it's trait [AsCleanDebug
] to get a [Debug
] implementation wired to the item's [Display
] implementation.
Dependencies
~655KB
~11K SLoC