1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Networking-related types not available in core.
//!
//! This module either re-exports or re-defines a number of types related to
//! networking that are not available in a `no_std` environment but are used
//! in DNS data. Currently, these are types for IP addresses.
//!
//! The `no_std` version currently is only the bare minimum implementation
//! and doesn’t provide all the features the `std` version has.

#[cfg(feature = "std")]
pub use std::net::{AddrParseError, IpAddr, Ipv4Addr, Ipv6Addr};

#[cfg(not(feature = "std"))]
pub use self::nostd::*;

mod nostd;
mod parser;