https://github.com/achanda/ipnetwork
A library to work with CIDRs in rust
https://github.com/achanda/ipnetwork
cargo ip-address ipv4 ipv6 rust
Last synced: 25 days ago
JSON representation
A library to work with CIDRs in rust
- Host: GitHub
- URL: https://github.com/achanda/ipnetwork
- Owner: achanda
- License: apache-2.0
- Created: 2015-04-18T01:21:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-01-13T04:04:29.000Z (3 months ago)
- Last Synced: 2025-02-28T07:03:12.011Z (about 2 months ago)
- Topics: cargo, ip-address, ipv4, ipv6, rust
- Language: Rust
- Homepage:
- Size: 281 KB
- Stars: 124
- Watchers: 5
- Forks: 40
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE.md
Awesome Lists containing this project
- awesome-rust-cn - achanda/ipnetwork - ci.org/achanda/ipnetwork.svg?branch=master">](https://travis-ci.org/achanda/ipnetwork) (Libraries / Network programming)
- awesome-rust - achanda/ipnetwork - ci.org/achanda/ipnetwork.svg?branch=master">](https://travis-ci.org/achanda/ipnetwork) (Libraries / Network programming)
- awesome-rust - achanda/ipnetwork
- awesome-rust-cn - achanda/ipnetwork
- awesome-rust-zh - achanda/ipnetwork - 在纯 Rust 中,使用 IP 网络的库[<img src="https://api.travis-ci.org/achanda/ipnetwork.svg?branch=master">](https://travis-ci.org/achanda/ipnetwork) (库 / 网络编程)
README
ipnetwork
===
This is a library to work with IPv4 and IPv6 CIDRs in Rust[](https://travis-ci.org/achanda/ipnetwork)
[](https://crates.io/crates/ipnetwork)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`:
```toml
[dependencies]
ipnetwork = "*"
```