mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-15 08:36:34 +00:00
1bd937e90c4395fdecfded61cc84b2f594526e09

Ipv6Network::nth
to get the nth address (take two) (#176)
* Add `Ipv6Network::nth` to get the nth address Works the same as `Ipv4Network::nth`, but using a `u128` index instead of `u32`. * add IpNetwork v6 nth test --------- Co-authored-by: Josh Triplett <josh@joshtriplett.org>
ipnetwork
This is a library to work with IPv4 and IPv6 CIDRs in Rust
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 = "*"
Description
Languages
Rust
100%