[dependencies.rust_decimal]
default-features = false
optional = true
version = "1"
[dependencies.serde]
default-features = false
features = ["alloc"]
optional = true
version = "1"
[dependencies.utf8-width]
version = "0.1"
[dev-dependencies.serde_json]
version = "1"
[features]
bit = ["rust_decimal"]
byte = ["rust_decimal"]
default = ["std", "byte"]
rust_decimal = ["dep:rust_decimal"]
serde = ["dep:serde"]
std = ["serde?/std"]
u128 = []
[package]
authors = ["Magic Len <len@magiclen.org>"]
categories = ["no-std", "parser-implementations", "value-formatting"]
description = "A library for interacting with units of bytes."
edition = "2021"
homepage = "https://magiclen.org/byte-unit"
include = ["src/**/*", "Cargo.toml", "README.md", "LICENSE"]
keywords = ["byte", "unit", "kb", "mb", "gb"]
license = "MIT"
name = "byte-unit"
readme = "README.md"
repository = "https://github.com/magiclen/byte-unit"
rust-version = "1.60"
version = "5.0.4"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]