#ipv4 #ipv6 #enums #address #ip-addr #preferred #net

ip

Provides the IpAddr enum, which can represent either an IPv4 or an IPv6 address. Do not use this crate! As of Rust 1.7.0, the std::net::IpAddr is stabilized - and should be preferred

3 stable releases

Uses old Rust 2015

1.1.1 Mar 3, 2016
1.1.0 Jan 12, 2016
1.0.0 Dec 3, 2015

#2 in #preferred

Download history 23/week @ 2024-03-11 38/week @ 2024-03-18 48/week @ 2024-03-25 88/week @ 2024-04-01 17/week @ 2024-04-08 19/week @ 2024-04-15 18/week @ 2024-04-22 9/week @ 2024-04-29 24/week @ 2024-05-06 17/week @ 2024-05-13 23/week @ 2024-05-20 14/week @ 2024-05-27 19/week @ 2024-06-03 24/week @ 2024-06-10 13/week @ 2024-06-17 19/week @ 2024-06-24

76 downloads per month
Used in 5 crates (via cassandra)

MIT license

6KB
91 lines

ip-rs

A tiny crate providing the IpAddr enum, which can represent either an IPv4 or an IPv6 address.

Build Status Build status

Do not use this code!

As of Rust 1.7.0, the std::net::IpAddr is stabilized - and should be preferred.

Documentation

API documentation is here.

Installation

In Cargo.toml:

[dependencies]
ip = "*"

And in your crate root:

extern crate ip;

lib.rs:

A crate that provides the IpAddr type, which can represent either an IPv4 or an IPv6 address.

Do not use this crate! As of Rust 1.7.0, the std::net::IpAddr is stabilized - and should be preferred.

No runtime deps