-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
49 lines (40 loc) · 1.28 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[package]
name = "duration-str"
version = "0.11.2"
authors = ["baoyachi <liaoymxsdl@gmail.com>"]
edition = "2021"
description = "duration string parser"
keywords = ["duration", "time", "duration-string", "duration-parser", "time-parser"]
readme = "README.md"
categories = ["parsing", "date-and-time"]
repository = "https://github.com/baoyachi/duration-str"
license = "Apache-2.0"
exclude = ["duration-str.png", "./playground"]
[features]
default = ["chrono", "serde", "time"]
[dependencies]
thiserror = "2.0.0"
chrono = { version = "0.4.38", optional = true, default-features = false, features = ["now"] }
time = { version = "0.3.17", optional = true, default-features = false }
serde = { version = "1.0.147", features = ["derive"], optional = true}
rust_decimal = { version = "1.29.1", default-features = false }
winnow = "0.6.8"
[dev-dependencies]
serde_json = { version = "1.0.87" }
criterion = "0.5"
[[bench]]
name = "parser_benchmark"
harness = false
# docs.rs-specific configuration
[package.metadata.docs.rs]
# document all features
all-features = true
[[example]]
name = "deserialize_duration"
required-features = ["serde"]
[[example]]
name = "deserialize_duration_chrono"
required-features = ["chrono", "serde"]
[[example]]
name = "deserialize_duration_time"
required-features = ["time", "serde"]