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