[[bench]]
harness = false
name = "parser_benchmark"
path = "benches/parser_benchmark.rs"
[dependencies.chrono]
default-features = false
features = ["now"]
optional = true
version = "0.4.38"
[dependencies.rust_decimal]
default-features = false
version = "1.29.1"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1.0.147"
[dependencies.thiserror]
version = "2.0.0"
[dependencies.time]
default-features = false
optional = true
version = "0.3.17"
[dependencies.winnow]
version = "0.6.8"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.serde_json]
version = "1.0.87"
[[example]]
name = "deserialize_duration"
path = "examples/deserialize_duration.rs"
required-features = ["serde"]
[[example]]
name = "deserialize_duration_chrono"
path = "examples/deserialize_duration_chrono.rs"
required-features = ["chrono", "serde"]
[[example]]
name = "deserialize_duration_time"
path = "examples/deserialize_duration_time.rs"
required-features = ["time", "serde"]
[features]
default = ["chrono", "serde", "time"]
[lib]
name = "duration_str"
path = "src/lib.rs"
[package]
authors = ["baoyachi <liaoymxsdl@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["parsing", "date-and-time"]
description = "duration string parser"
edition = "2021"
exclude = ["duration-str.png", "./playground"]
keywords = ["duration", "time", "duration-string", "duration-parser", "time-parser"]
license = "Apache-2.0"
name = "duration-str"
readme = "README.md"
repository = "https://github.com/baoyachi/duration-str"
version = "0.11.3"
[package.metadata.docs.rs]
all-features = true