Format the bytes as human readable bytes

Uses the same `byte_unit` version as `meilisearch`
This commit is contained in:
Louis Dureuil
2024-01-23 10:21:50 +01:00
parent 771861599b
commit 6cf703387d
4 changed files with 52 additions and 17 deletions

View File

@ -14,4 +14,8 @@ tracing = "0.1.40"
tracing-error = "0.2.0"
tracing-subscriber = "0.3.18"
stats_alloc = { git = "https://github.com/Kerollmops/stats_alloc", branch = "stable-const-fn-trait" }
once_cell = "1.19.0"
byte-unit = { version = "4.0.19", default-features = false, features = [
"std",
"serde",
] }