mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #2346] Add a feature option to use chrono instead of time? #966
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#966
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zh-jq-b on GitHub (Aug 7, 2024).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2346
The 0.25 version introduces
timeas a dependency, how about switch tochronoor add a feature to switch?@djc commented on GitHub (Aug 7, 2024):
This was added in the proto crate in https://github.com/hickory-dns/hickory-dns/pull/2335/commits/64e35689ad556d387d09d811b5586d0ac098099f (as part of #2335). Previously it was only used in the server crate and I pushed down the dependency in order to expose a more type-safe interface for the newer higher-level
TBSconstructor (rather than passing aroundu32with an implicit well-defined scope).Historically, we moved from chrono to time in #1569 -- however, since then chrono got a new maintainer (me) and fixed all the advisory issues. At this point, chrono and time are nearly equally popular.
I don't really love the option of allowing both. We could switch back to chrono but it doesn't seem meaningfully better?
@zh-jq-b what are your constraints here? Do you actually need DNSSEC? Are you depending on the proto crate directly or via the resolver?
@zh-jq-b commented on GitHub (Aug 8, 2024):
I didn't have
timein the dependency and it also depends on some others crates, it will be good to avoid those new deps.I use the
clientand theprotocrate directly without DNSSEC features enabled.@djc commented on GitHub (Aug 8, 2024):
#2349 at least gets rid of the extra dependency for your particular use case, making it conditional on
dnssecbeing in use.@zh-jq-b commented on GitHub (Aug 8, 2024):
thanks, #2349 this will work for me