add pretty/si-unit byte size parsing/printing utils

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-11-12 22:01:32 +00:00
parent c59f474aff
commit feefa43e65
4 changed files with 40 additions and 1 deletions

7
Cargo.lock generated
View file

@ -458,6 +458,12 @@ version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da"
[[package]]
name = "bytesize"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3e368af43e418a04d52505cf3dbc23dda4e3407ae2fa99fd0e4f308ce546acc"
[[package]]
name = "bzip2-sys"
version = "0.1.11+1.0.8"
@ -683,6 +689,7 @@ dependencies = [
"arrayvec",
"axum",
"bytes",
"bytesize",
"cargo_toml",
"checked_ops",
"chrono",