#web-server #utilities

kvarn_utils

HTTP and Rust utilities used in the Kvarn web server

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

Download history 17/week @ 2022-11-29 55/week @ 2022-12-06 28/week @ 2022-12-13 47/week @ 2022-12-20 34/week @ 2022-12-27 7/week @ 2023-01-03 39/week @ 2023-01-10 21/week @ 2023-01-17 60/week @ 2023-01-24 66/week @ 2023-01-31 24/week @ 2023-02-07 52/week @ 2023-02-14 61/week @ 2023-02-21 21/week @ 2023-02-28 30/week @ 2023-03-07 34/week @ 2023-03-14

155 downloads per month
Used in 9 crates (4 directly)

Apache-2.0

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