domain/base/net/mod.rs
1//! Networking-related types not available in core.
2//!
3//! This module either re-exports or re-defines a number of types related to
4//! networking that are not available in a `no_std` environment but are used
5//! in DNS data. Currently, these are types for IP addresses.
6//!
7//! The `no_std` version currently is only the bare minimum implementation
8//! and doesn’t provide all the features the `std` version has.
9
10#[cfg(feature = "std")]
11pub use std::net::{AddrParseError, IpAddr, Ipv4Addr, Ipv6Addr};
12
13#[cfg(not(feature = "std"))]
14pub use self::nostd::*;
15
16mod nostd;
17mod parser;