[PR #2821] [MERGED] Add initial std feature that keeps MSRV, the next step towards no_std #3342

Closed
opened 2026-03-16 11:38:28 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/2821
Author: @domenukk
Created: 3/2/2025
Status: Merged
Merged: 3/12/2025
Merged by: @djc

Base: mainHead: no_std_part2


📝 Commits (2)

  • cbb5de9 Add cfg guards to use core::net instad of std::net in upcoming no-std
  • aa0025d Special casing for HashMap>BTReeMap in no_std

📊 Changes

14 files changed (+56 additions, -4 deletions)

View changed files

📝 .github/workflows/test.yml (+2 -2)
📝 Cargo.toml (+1 -1)
📝 crates/proto/Cargo.toml (+2 -0)
📝 crates/proto/src/rr/domain/name.rs (+3 -0)
📝 crates/proto/src/rr/rdata/a.rs (+7 -0)
📝 crates/proto/src/rr/rdata/aaaa.rs (+6 -0)
📝 crates/proto/src/rr/rdata/opt.rs (+3 -0)
📝 crates/proto/src/rr/record_data.rs (+3 -0)
📝 crates/proto/src/rr/record_type.rs (+3 -0)
📝 crates/proto/src/rr/rr_set.rs (+3 -0)
📝 crates/proto/src/serialize/txt/errors.rs (+15 -0)
📝 crates/proto/src/xfer/serial_message.rs (+3 -0)
📝 fuzz/Cargo.toml (+1 -1)
📝 justfile (+4 -0)

📄 Description

This is the next step to make hickory no_std. Now, without the std feature, the MSRV will be 1.81.
The std feature is enabled for pretty much all use cases.
In the future, we can add proper no_std support now, in #2104


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/2821 **Author:** [@domenukk](https://github.com/domenukk) **Created:** 3/2/2025 **Status:** ✅ Merged **Merged:** 3/12/2025 **Merged by:** [@djc](https://github.com/djc) **Base:** `main` ← **Head:** `no_std_part2` --- ### 📝 Commits (2) - [`cbb5de9`](https://github.com/hickory-dns/hickory-dns/commit/cbb5de9bd5609a786bf6a22095829dc92ef69d90) Add cfg guards to use core::net instad of std::net in upcoming no-std - [`aa0025d`](https://github.com/hickory-dns/hickory-dns/commit/aa0025d03cc2202d2d60da6e97a0e3508c9b0c10) Special casing for HashMap>BTReeMap in no_std ### 📊 Changes **14 files changed** (+56 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/test.yml` (+2 -2) 📝 `Cargo.toml` (+1 -1) 📝 `crates/proto/Cargo.toml` (+2 -0) 📝 `crates/proto/src/rr/domain/name.rs` (+3 -0) 📝 `crates/proto/src/rr/rdata/a.rs` (+7 -0) 📝 `crates/proto/src/rr/rdata/aaaa.rs` (+6 -0) 📝 `crates/proto/src/rr/rdata/opt.rs` (+3 -0) 📝 `crates/proto/src/rr/record_data.rs` (+3 -0) 📝 `crates/proto/src/rr/record_type.rs` (+3 -0) 📝 `crates/proto/src/rr/rr_set.rs` (+3 -0) 📝 `crates/proto/src/serialize/txt/errors.rs` (+15 -0) 📝 `crates/proto/src/xfer/serial_message.rs` (+3 -0) 📝 `fuzz/Cargo.toml` (+1 -1) 📝 `justfile` (+4 -0) </details> ### 📄 Description This is the next step to make hickory no_std. Now, without the `std` feature, the MSRV will be 1.81. The `std` feature is enabled for pretty much all use cases. In the future, we can add proper no_std support now, in #2104 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 11:38:28 +03:00
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#3342
No description provided.