19 releases (breaking)
| new 0.18.0-rc.1 | Mar 5, 2026 |
|---|---|
| 0.17.0-rc.1 | Jan 18, 2026 |
| 0.16.0 | Nov 21, 2025 |
| 0.14.0 | May 13, 2025 |
| 0.4.0 | Oct 13, 2019 |
#600 in Network programming
Used in 2 crates
(via web-url)
93KB
2.5K
SLoC
address
This library aids in processing network addresses.
Features & Dependencies
address = "0.18.0-rc.1"
This crate has no features or dependencies.
Address Types
There are 6 core address types:
IPAddress: Either an IPv4 address or an IPv6 address.- Includes the
IPAddressenum along with theIPv4Address&IPv6Addressstruct types.
- Includes the
SocketAddress: An IP address with an associated port.- Includes the
SocketAddress,SocketAddressV4&SocketAddressV6struct types.
- Includes the
Domain: A domain name.- Includes: the
Domain&DomainRefstruct types.
- Includes: the
Endpoint: A domain with an associated port.- Includes: the
Endpoint&EndpointRefstruct types.
- Includes: the
Host: Either a domain or an IP address.- Includes: the
Host&HostRefenum types.
- Includes: the
Authority: A host with an associated port.- Includes: the
Authority&AuthorityRefstruct types.
- Includes: the
Owned & Reference Types
Address types that are not Copy have owned and Ref types (example: Domain & DomainRef). This allows both owned
types and types that do not require allocation. These types can be easily converted between one another.
Standard Library Types
IP addresses and socket addresses are different from their standard library counterparts. They can be easily converted
between each other. There is a difference in IPv6 socket addresses: the flow_info and scope_id are not included as
part of the address.