Skip to content

Commit e2c8c63

Browse files
committed
feat: Supports jiff crate
1 parent 31d1eb0 commit e2c8c63

File tree

11 files changed

+920
-73
lines changed

11 files changed

+920
-73
lines changed

CHANGELOG.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ project adheres to https://semver.org/[Semantic Versioning].
1616

1717
== {compare-url}/v0.11.0\...HEAD[Unreleased]
1818

19+
=== Added
20+
21+
* Supports `jiff` crate ({pull-request-url}/303[#303])
22+
1923
=== Changed
2024

2125
* Change `FileTime::from_str_radix` to `const fn` ({pull-request-url}/300[#300])

Cargo.lock

Lines changed: 89 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ required-features = ["std"]
5252

5353
[dependencies]
5454
chrono = { version = "0.4.40", default-features = false, optional = true }
55+
jiff = { version = "0.2.4", default-features = false, optional = true }
5556
rand = { version = "0.9.0", default-features = false, optional = true }
5657
serde = { version = "1.0.219", default-features = false, features = ["derive"], optional = true }
5758
time = { version = "0.3.39", default-features = false, features = ["macros"] }
5859

5960
[dev-dependencies]
6061
anyhow = "1.0.97"
61-
clap = { version = "4.5.31", features = ["derive"] }
62+
clap = { version = "4.5.32", features = ["derive"] }
6263
proptest = "1.6.0"
6364
proptest-derive = "0.5.1"
6465
serde_json = "1.0.140"
@@ -69,11 +70,12 @@ time = { version = "0.3.39", features = ["parsing"] }
6970
[features]
7071
default = ["std"]
7172
chrono = ["dep:chrono"]
73+
jiff = ["dep:jiff"]
7274
large-dates = ["time/large-dates"]
7375
rand = ["dep:rand"]
7476
serde = ["dep:serde"]
7577
serde-human-readable = ["serde", "time/serde-human-readable"]
76-
std = ["chrono?/std", "rand?/std", "time/std"]
78+
std = ["chrono?/std", "jiff?/std", "rand?/std", "time/std"]
7779

7880
[lints.clippy]
7981
cargo = { level = "warn", priority = -1 }

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ cargo add nt-time
4040

4141
Enables the [`chrono`] crate.
4242

43+
#### `jiff`
44+
45+
Enables the [`jiff`] crate.
46+
4347
#### `large-dates`
4448

4549
Enables the `large-dates` feature of the [`time`] crate.
@@ -119,6 +123,7 @@ licensing information.
119123
[`FileTimeToSystemTime`]: https://learn.microsoft.com/en-us/windows/win32/api/timezoneapi/nf-timezoneapi-filetimetosystemtime
120124
[`time`]: https://crates.io/crates/time
121125
[`chrono`]: https://crates.io/crates/chrono
126+
[`jiff`]: https://crates.io/crates/jiff
122127
[`rand`]: https://crates.io/crates/rand
123128
[`serde`]: https://serde.rs/
124129
[CHANGELOG.adoc]: CHANGELOG.adoc

0 commit comments

Comments
 (0)