diff --git a/Cargo.toml b/Cargo.toml index 890bb47..9b7c7d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ipnetwork" -version = "0.2.2" +version = "0.3.0" authors = ["Abhishek Chanda "] description = "A library to work with IP CIDRs in Rust, heavily WIP" license = "Apache-2.0" @@ -8,6 +8,7 @@ repository = "https://github.com/achanda/ipnetwork" [dependencies] clippy = {version = "0.0.21", optional = true} +ip = "1.0.0" [features] default = [] diff --git a/src/lib.rs b/src/lib.rs index 004cc93..5bcf61e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,11 +2,14 @@ #![cfg_attr(feature = "dev", feature(plugin))] #![cfg_attr(feature = "dev", plugin(clippy))] #![crate_type = "lib"] -#![feature(ip_addr)] #[allow(dead_code)] +extern crate ip; + use std::fmt; -use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; +use std::net::{Ipv4Addr, Ipv6Addr}; + +use ip::IpAddr; // A network #[derive(Debug)]