[GH-ISSUE #258] Replace chrono dependency with libstd dependency in -client #124

Closed
opened 2026-03-07 22:22:58 +03:00 by kerem · 3 comments
Owner

Originally created by @briansmith on GitHub (Oct 24, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/258

-client only depends on chrono::Duration from the chrono package. There exists a std::time::Duration with similar, but not exactly the same, functionality. In #257 I removed the chrono dependency from -proto. A similar change should be made in -client, to minimize dependencies, especially third-party dependencies.

Originally created by @briansmith on GitHub (Oct 24, 2017). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/258 `-client` only depends on `chrono::Duration` from the `chrono` package. There exists a `std::time::Duration` with similar, but not exactly the same, functionality. In #257 I removed the `chrono` dependency from `-proto`. A similar change should be made in -client, to minimize dependencies, especially third-party dependencies.
kerem 2026-03-07 22:22:58 +03:00
Author
Owner

@bluejekyll commented on GitHub (Oct 25, 2017):

when this was originally written, I believe I needed features in chrono that did not exist in std. Looks like that's all better now.

<!-- gh-comment-id:339366075 --> @bluejekyll commented on GitHub (Oct 25, 2017): when this was originally written, I believe I needed features in `chrono` that did not exist in `std`. Looks like that's all better now.
Author
Owner

@darnuria commented on GitHub (Aug 5, 2022):

Hi, while making some easy-first-good pick locked and this one was closed by 3becddb54b in #1569

- (all) removed `chrono` dependency #1569
<!-- gh-comment-id:1206793335 --> @darnuria commented on GitHub (Aug 5, 2022): Hi, while making some easy-first-good pick locked and this one was closed by 3becddb54b85a3e0848fb50d9a04a051f86dca7f in #1569 ``` - (all) removed `chrono` dependency #1569 ```
Author
Owner

@djc commented on GitHub (Aug 5, 2022):

Thanks!

<!-- gh-comment-id:1206795292 --> @djc commented on GitHub (Aug 5, 2022): Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#124
No description provided.