| Crates.io | address |
| lib.rs | address |
| version | 0.15.0 |
| created_at | 2019-10-01 03:06:48.913334+00 |
| updated_at | 2025-09-02 16:57:44.89752+00 |
| description | This library aids in processing network addresses. |
| homepage | https://github.com/nikdeapen/address |
| repository | https://github.com/nikdeapen/address |
| max_upload_size | |
| id | 169006 |
| size | 92,984 |
This library aids in processing network addresses.
There are currently no features. You can use all address types with the following dependency:
[dependencies]
address = "0.15.0"
There are 6 core address types:
IPAddress enum along with the IPv4Address & IPv6Address struct types.SocketAddress, SocketAddressV4 & SocketAddressV6 struct types.Domain & DomainRef struct types.Endpoint & EndpointRef struct types.Host & HostRef enum types.Authority & AuthorityRef struct 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.
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.