mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2104] [MERGED] no-std support for hickory-proto #2813
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#2813
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/2104
Author: @domenukk
Created: 12/5/2023
Status: ✅ Merged
Merged: 3/18/2025
Merged by: @djc
Base:
main← Head:no_std📝 Commits (3)
a959dbbIntroduce cfg guards for std feature flag5f53e25Add required features and flags to Cargo.toml1ed8117Add proto-aarch64-none no_std build to justfile and CI📊 Changes
44 files changed (+269 additions, -89 deletions)
View changed files
📝
.github/workflows/test.yml(+16 -0)📝
Cargo.lock(+4 -12)📝
Cargo.toml(+10 -15)📝
crates/client/Cargo.toml(+1 -1)📝
crates/proto/Cargo.toml(+38 -22)📝
crates/proto/src/dnssec/rdata/dnskey.rs(+2 -0)📝
crates/proto/src/dnssec/rdata/ds.rs(+2 -0)📝
crates/proto/src/dnssec/signer.rs(+3 -0)📝
crates/proto/src/error.rs(+11 -0)📝
crates/proto/src/lib.rs(+8 -1)📝
crates/proto/src/rr/domain/label.rs(+3 -0)📝
crates/proto/src/rr/domain/name.rs(+8 -1)📝
crates/proto/src/rr/rdata/caa.rs(+4 -0)📝
crates/proto/src/rr/rdata/csync.rs(+2 -0)📝
crates/proto/src/rr/rdata/hinfo.rs(+3 -0)📝
crates/proto/src/rr/rdata/mx.rs(+2 -0)📝
crates/proto/src/rr/rdata/name.rs(+2 -0)📝
crates/proto/src/rr/rdata/naptr.rs(+3 -0)📝
crates/proto/src/rr/rdata/null.rs(+2 -0)📝
crates/proto/src/rr/rdata/opt.rs(+3 -0)...and 24 more files
📄 Description
This is a rather big pull request that allows the use of
hickory-protoinno_stdenvironments.It has been tested on an embedded system and works, however there are certain gotchas, listed below.
Hence, this PR is marked as draft and we hope to hear some maintainer feedback on it.
Some gotchas are as follows:
no-stdsupport requires nightly features. We have feature-gated those behind anunstablefeature. Thestdfeature doesn't require nightly - everything works as normal here. The nightly features we need are:ip_in_corefor all ip and network address related APIs (https://github.com/rust-lang/rust/issues/108443)error_in_corefor error handling without std (https://github.com/rust-lang/rust/issues/103765)thiserror_core, a no-std compatible version ofthiserroron cargo.seed_rngOne possible way forward, instead of going all-in on, could be to merge the
unstableas well asstdfeatures from this PR and theno_stdheader (including allvecandstringimports), but continue to depend on the upstreamurlandthiserrorcrates, so that ano_stdforks is easier to maintain (by changing the imports in Cargo.toml)Please let us know what you think :)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.