| 1 |
[package] |
| 2 |
name = "human_bytes" |
| 3 |
version = "0.4.3" |
| 4 |
authors = ["Namkhai B. <[email protected]>"] |
| 5 |
edition = "2018" |
| 6 |
description = "Crate to convert bytes into human-readable values" |
| 7 |
license = "BSD-2-Clause" |
| 8 |
|
| 9 |
homepage = "https://sr.ht/~nkeor/human_bytes" |
| 10 |
repository = "https://git.sr.ht/~nkeor/human_bytes" |
| 11 |
categories = ["value-formatting"] |
| 12 |
keywords = ["bytes", "conversion", "format", "value-formatting", "utility"] |
| 13 |
|
| 14 |
[features] |
| 15 |
default = ["si-units"] |
| 16 |
si-units = [] |
| 17 |
build-binary = ["anyhow", "lexopt"] |
| 18 |
fast = ["ryu"] |
| 19 |
|
| 20 |
[dependencies] |
| 21 |
anyhow = { version = "1.0", optional = true } |
| 22 |
lexopt = { version = "0.3", optional = true } |
| 23 |
ryu = { version = "1.0", optional = true } |
| 24 |
|
| 25 |
[[bin]] |
| 26 |
name = "hb" |
| 27 |
required-features = ["build-binary"] |
| 28 |
|
| 29 |
[profile.release] |
| 30 |
lto = true |
| 31 |
strip = true |