ip_network
IPv4 and IPv6 network structs.
Usage
Add this to your Cargo.toml
:
[]
= "0.1"
this to your crate root:
extern crate ip_network;
and then you can use it like this:
use Ipv4Addr;
use Ipv4Network;
let ip_network = from.unwrap;
assert_eq!;
Serde support
To enable serialization, just add serde
feature to package in Cargo.toml
:
[]
= { = "0.1", = ["serde"] }
Postgres support
To enable support for postgres crate CIDR type, just add postgres
feature to package in Cargo.toml
:
[]
= { = "0.1", = ["postgres"] }
Diesel support
To enable support for diesel crate CIDR type, just add diesel
feature to package in Cargo.toml
:
[]
= { = "0.1", = ["diesel"] }