-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
75 lines (62 loc) · 1.55 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[package]
name = "utc2k"
version = "0.11.1"
authors = ["Josh Stoik <[email protected]>"]
edition = "2021"
rust-version = "1.81"
description = "A fast and lean UTC date/time library concerned only with happenings in this century (2000-2099)."
license = "WTFPL"
repository = "https://github.com/Blobfolio/utc2k"
readme = "README.md"
keywords = [ "time", "date", "utc", "unixtime", "printing" ]
exclude = [
".github",
".gitignore",
".righteous-sandbox.json",
"CREDITS.md",
"doc",
"justfile",
]
[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
features = [ "local", "serde" ]
default-target = "x86_64-unknown-linux-gnu"
[package.metadata.bashman]
name = "UTC2K"
[dev-dependencies]
brunch = "0.7.*"
fastrand = "2"
serde = "1.0.*"
serde_json = "1.0.*"
[dev-dependencies.time]
version = "0.3.*"
default-features = false
features = [ "std", "formatting" ]
[dependencies.serde]
version = "1.0.*"
optional = true
[dependencies.tz-rs]
version = "=0.7.0"
optional = true
[features]
default = []
# This enables the "LocalOffset" struct for tricking — with caveats — Utc2k
# and FmtUtc2k into holding a local datetime rather than a UTC one. This only
# works on unix, but shouldn't outright break non-unix builds.
local = [ "tz-rs" ]
# This enables (de)/serialize support for Utc2k and FmtUtc2k.
serde = [ "dep:serde" ]
[[bench]]
name = "d_utc2k"
harness = false
[[bench]]
name = "d_fmtutc2k"
harness = false
[[bench]]
name = "d_weekmonth"
harness = false
[[bench]]
name = "d_local"
harness = false
required-features = [ "local" ]