mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #1944] [MERGED] Replace lazy_static with once_cell #2711
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#2711
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?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/1944
Author: @daxpedda
Created: 5/24/2023
Status: ✅ Merged
Merged: 5/24/2023
Merged by: @djc
Base:
main← Head:once-cell📝 Commits (1)
c574380Replacelazy_staticwithonce_cell📊 Changes
16 files changed (+504 additions, -334 deletions)
View changed files
📝
Cargo.lock(+4 -4)📝
Cargo.toml(+1 -1)📝
crates/client/Cargo.toml(+1 -1)📝
crates/client/src/rr/zone.rs(+200 -66)📝
crates/proto/Cargo.toml(+1 -1)📝
crates/proto/src/error.rs(+7 -9)📝
crates/proto/src/multicast/mdns_stream.rs(+16 -13)📝
crates/proto/src/rr/domain/usage.rs(+162 -119)📝
crates/proto/src/rr/rdata/sshfp.rs(+10 -12)📝
crates/resolver/Cargo.toml(+1 -1)📝
crates/resolver/examples/global_resolver.rs(+66 -66)📝
crates/resolver/src/caching_client.rs(+5 -5)📝
crates/resolver/src/lib.rs(+0 -2)📝
crates/resolver/src/tls/dns_over_rustls.rs(+23 -24)📝
tests/integration-tests/Cargo.toml(+1 -1)📝
tests/integration-tests/tests/mdns_tests.rs(+6 -9)📄 Description
This replaces the current dependency on
lazy_staticwithonce_cell. Couple of reasons:lazy_statictoonce_cell, so hopefully one day we can eliminatelazy_staticfrom the dependency tree.lazy_staticis unmaintained.once_cellis much closer to whats going to be stabilized in Rust v1.70 and future versions: https://github.com/rust-lang/rust/issues/74465.once_cellwill also give us theOnceCelltype, which allows for failing initialization, as required in #1943.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.