[[bench]]
harness = false
name = "parser_benchmark"
path = "benches/parser_benchmark.rs"
required-features = ["lowercase", "no_calc"]
[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.7.4"
[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"]
[[example]]
name = "no_calc"
path = "examples/no_calc.rs"
required-features = ["no_calc"]
[features]
calc = []
cn_unit = []
default = ["chrono", "serde", "time", "calc"]
lowercase = []
no_calc = []
[lib]
name = "duration_str"
path = "src/lib.rs"
[package]
authors = ["baoyachi <liaoymxsdl@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = 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.17.0"
[package.metadata.docs.rs]
all-features = true