mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-16 16:58:50 +00:00
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ipnetwork"
|
name = "ipnetwork"
|
||||||
version = "0.4.0"
|
version = "0.5.0"
|
||||||
authors = ["Abhishek Chanda <abhishe.becsk@gmail.com>"]
|
authors = ["Abhishek Chanda <abhishe.becsk@gmail.com>"]
|
||||||
description = "A library to work with IP CIDRs in Rust, heavily WIP"
|
description = "A library to work with IP CIDRs in Rust, heavily WIP"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
@ -8,7 +8,6 @@ repository = "https://github.com/achanda/ipnetwork"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clippy = {version = "0.0.37", optional = true}
|
clippy = {version = "0.0.37", optional = true}
|
||||||
ip = "1.0.0"
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
@ -2,14 +2,11 @@
|
|||||||
#![cfg_attr(feature = "dev", feature(plugin))]
|
#![cfg_attr(feature = "dev", feature(plugin))]
|
||||||
#![cfg_attr(feature = "dev", plugin(clippy))]
|
#![cfg_attr(feature = "dev", plugin(clippy))]
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
#![feature(ip_addr)]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
|
||||||
extern crate ip;
|
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::net::{Ipv4Addr, Ipv6Addr};
|
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
|
||||||
|
|
||||||
use ip::IpAddr;
|
|
||||||
|
|
||||||
// A network
|
// A network
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
Reference in New Issue
Block a user