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

#25 in Network programming

Download history 86569/week @ 2023-11-02 84373/week @ 2023-11-09 90662/week @ 2023-11-16 85596/week @ 2023-11-23 89621/week @ 2023-11-30 95331/week @ 2023-12-07 91726/week @ 2023-12-14 51753/week @ 2023-12-21 53854/week @ 2023-12-28 89930/week @ 2024-01-04 91286/week @ 2024-01-11 102586/week @ 2024-01-18 110194/week @ 2024-01-25 105685/week @ 2024-02-01 114172/week @ 2024-02-08 93464/week @ 2024-02-15

442,363 downloads per month
Used in 339 crates (111 directly)

MIT/Apache

63KB
1.5K 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

~110–495KB
~11K SLoC