Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a new net::server module #482

Draft
wants to merge 12 commits into
base: new-base
Choose a base branch
from
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ license = "BSD-3-Clause"
[dependencies]
domain-macros = { path = "./macros", version = "0.10.3" }

either = { version = "1.10.0", default-features = false }

arbitrary = { version = "1.4.1", optional = true, features = ["derive"] }
octseq = { version = "0.5.2", default-features = false }
time = { version = "0.3.1", default-features = false }
Expand Down Expand Up @@ -58,7 +60,7 @@ bytes = ["dep:bytes", "octseq/bytes"]
heapless = ["dep:heapless", "octseq/heapless"]
serde = ["dep:serde", "octseq/serde"]
smallvec = ["dep:smallvec", "octseq/smallvec"]
std = ["dep:hashbrown", "bytes?/std", "octseq/std", "time/std"]
std = ["dep:hashbrown", "either/use_std", "bytes?/std", "octseq/std", "time/std"]
tracing = ["dep:log", "dep:tracing"]

# Cryptographic backends
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,5 @@ pub mod zonetree;

pub mod new_base;
pub mod new_edns;
pub mod new_net;
pub mod new_rdata;
1 change: 1 addition & 0 deletions src/new_base/question.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ where

impl<'a, N> ParseMessageBytes<'a> for Question<N>
where
// TODO: Reduce to 'ParseMessageBytes'.
N: SplitMessageBytes<'a>,
{
fn parse_message_bytes(
Expand Down
6 changes: 6 additions & 0 deletions src/new_net/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//! Sending and receiving DNS messages.

#![cfg(feature = "net")]
#![cfg_attr(docsrs, doc(cfg(feature = "net")))]

pub mod server;
Loading