[package]
name = "dur"
version = "0.5.1"
edition = "2021"
authors = ["Taylan Gökkaya<insomnimus@proton.me>"]
description = "Duration parser and formatter for humans"
readme = "readme.md"
homepage = "https://github.com/insomnimus/dur"
repository = "https://github.com/insomnimus/dur"
license = "MIT"
keywords = ["duration", "human", "pretty-print", "format", "time"]
categories = ["date-and-time", "no-std", "parser-implementations", "text-processing", "value-formatting"]
[package.metadata.docs.rs]
all-features = true
[features]
default = []
std = ["alloc"]
alloc = []
clap = ["std", "clap/std", "clap/error-context"]
serde = ["alloc", "serde/alloc"]
[dependencies]
clap = { version = "4.5.4", optional = true, default-features = false }
nom = { version = "7.1.3", default-features = false }
rust_decimal = { version = "1.35.0", default-features = false, features = ["std"] }
serde = { version = "1.0.197", default-features = false, optional = true }
[dev-dependencies]
serde_json = "1.0.115"