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

#24 in Network programming

Download history 224280/week @ 2024-07-30 216165/week @ 2024-08-06 243882/week @ 2024-08-13 253555/week @ 2024-08-20 236623/week @ 2024-08-27 262082/week @ 2024-09-03 271051/week @ 2024-09-10 248614/week @ 2024-09-17 285855/week @ 2024-09-24 275933/week @ 2024-10-01 299793/week @ 2024-10-08 311726/week @ 2024-10-15 345575/week @ 2024-10-22 320483/week @ 2024-10-29 319025/week @ 2024-11-05 252344/week @ 2024-11-12

1,297,150 downloads per month
Used in 466 crates (139 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

~100–500KB
~11K SLoC