44 releases

0.20.0 Jul 1, 2022
0.18.0 Apr 13, 2021
0.17.0 Jul 13, 2020
0.16.0 Jan 8, 2020
0.1.10 May 5, 2015

#22 in Network programming

Download history 214257/week @ 2024-06-14 218270/week @ 2024-06-21 214905/week @ 2024-06-28 223679/week @ 2024-07-05 216120/week @ 2024-07-12 212695/week @ 2024-07-19 229581/week @ 2024-07-26 214608/week @ 2024-08-02 231240/week @ 2024-08-09 258362/week @ 2024-08-16 247566/week @ 2024-08-23 240293/week @ 2024-08-30 262225/week @ 2024-09-06 250625/week @ 2024-09-13 290638/week @ 2024-09-20 217413/week @ 2024-09-27

1,072,654 downloads per month
Used in 445 crates (133 directly)

MIT/Apache

63KB
1.5K SLoC

ipnetwork

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

Build Status

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

~110–510KB
~11K SLoC