Revert "Use the ip crate"

This reverts commit 5f84d3a817.
This commit is contained in:
Abhishek Chanda
2016-02-12 00:55:11 -08:00
parent af1cc62950
commit d5422c0fd7
2 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "ipnetwork"
version = "0.4.0"
version = "0.5.0"
authors = ["Abhishek Chanda <abhishe.becsk@gmail.com>"]
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 = []

View File

@ -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)]