From e812eb66ca063745a5b0d273281f8bf4d5148695 Mon Sep 17 00:00:00 2001 From: Abhishek Chanda Date: Sat, 19 Mar 2016 11:12:01 -0700 Subject: [PATCH] Drop the ip crate --- Cargo.toml | 3 +-- src/lib.rs | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 53d488f..5036fc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ipnetwork" -version = "0.6.0" +version = "0.6.1" 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 cd2776b..7e8d5de 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,14 +4,10 @@ #![crate_type = "lib"] #[allow(dead_code)] -extern crate ip; - use std::fmt; -use std::net::{Ipv4Addr, Ipv6Addr}; +use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; use std::str::FromStr; -use ip::IpAddr; - const IPV4_BITS: u8 = 32; const IPV6_BITS: u8 = 128;