42 releases

new 0.18.0 Apr 13, 2021
0.17.0 Jul 13, 2020
0.16.0 Jan 8, 2020
0.15.1 Nov 23, 2019
0.1.10 May 5, 2015

#42 in Network programming

Download history 9144/week @ 2020-12-29 14679/week @ 2021-01-05 16688/week @ 2021-01-12 15972/week @ 2021-01-19 16816/week @ 2021-01-26 18710/week @ 2021-02-02 16897/week @ 2021-02-09 20607/week @ 2021-02-16 19909/week @ 2021-02-23 17651/week @ 2021-03-02 19782/week @ 2021-03-09 19512/week @ 2021-03-16 21462/week @ 2021-03-23 16975/week @ 2021-03-30 21092/week @ 2021-04-06 21704/week @ 2021-04-13

79,903 downloads per month
Used in 133 crates (41 directly)

MIT/Apache

56KB
1K SLoC

ipnetwork

This is a library to work with IPv4 and IPv6 CIDRs in Rust

Build Status Merit Badge

Run Clippy by doing

rustup component add clippy
cargo clippy

Installation

This crate works with Cargo. Assuming you have Rust and Cargo installed, simply check out the source and run tests:

git clone https://github.com/achanda/ipnetwork
cd ipnetwork
cargo test

You can also add ipnetwork as a dependency to your project's Cargo.toml:

[dependencies]
ipnetwork = "*"

lib.rs:

The ipnetwork crate provides a set of APIs to work with IP CIDRs in Rust.

Dependencies

~150–270KB