From d5422c0fd772bc5914a613f41a389072ccd372d1 Mon Sep 17 00:00:00 2001 From: Abhishek Chanda Date: Fri, 12 Feb 2016 00:55:11 -0800 Subject: [PATCH] Revert "Use the ip crate" This reverts commit 5f84d3a81739e5a48cf43c658dd5e1e70a03706c. --- Cargo.toml | 3 +-- src/lib.rs | 7 ++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 25363f7..e299018 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ipnetwork" -version = "0.4.0" +version = "0.5.0" authors = ["Abhishek Chanda "] description = "A library to work with IP CIDRs in Rust, heavily WIP" license = "Apache-2.0" @@ -8,7 +8,6 @@ repository = "https://github.com/achanda/ipnetwork" [dependencies] clippy = {version = "0.0.37", optional = true} -ip = "1.0.0" [features] default = [] diff --git a/src/lib.rs b/src/lib.rs index b685a35..f432992 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,14 +2,11 @@ #![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::{Ipv4Addr, Ipv6Addr}; - -use ip::IpAddr; +use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; // A network #[derive(Debug)]