#network #ip #address

ipnetwork

A library to work with IP CIDRs in Rust, heavily WIP

36 releases

0.13.1 Aug 31, 2018
0.13.0 May 12, 2018
0.12.8 Mar 15, 2018
0.12.7 Sep 7, 2017
0.1.10 May 5, 2015

#6 in Network programming

Download history 1018/week @ 2018-07-25 1606/week @ 2018-08-01 1595/week @ 2018-08-08 1661/week @ 2018-08-15 1113/week @ 2018-08-22 1425/week @ 2018-08-29 1402/week @ 2018-09-05 1255/week @ 2018-09-12 1610/week @ 2018-09-19 1311/week @ 2018-09-26 1871/week @ 2018-10-03 1439/week @ 2018-10-10 1533/week @ 2018-10-17

7,503 downloads per month
Used in 28 crates (12 directly)

Apache-2.0

38KB
775 lines

ipnetwork

This is a library to work with IPv4 and v6 CIDRs in rust The IPv4 implementation is stable, IPv6 implementation is not done yet.

Build Status Merit Badge

Run Clippy by doing

cargo test --features "dev"

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. Implementation for IPv4 is more or less stable, IPv6 implementation is still WIP.

Dependencies

~1MB
~27K SLoC