ipcrust-0.2.2 is not a library.
ipcrust
IP network calculator written in Rust. Supports both IPv4 and IPv6 addresses.
Features
- IPv4 subnet calculation (network, broadcast, first/last usable address, usable hosts)
- IPv4 address class detection (A, B, C, D, E)
- IPv4 CIDR and dotted-decimal mask support
- IPv6 prefix calculation (first/last address, containment checks)
- IPv6 short, condensed, and full address formatting (RFC 5952 compliant)
- IPv6 EUI-64/EUI-48 (MAC address) detection and extraction
- Colored terminal output with binary and bar representations
Installation
From crates.io
From source
Usage
ipcrust <ip>/<cidr>
ipcrust <ipv4>/<mask>
ipcrust <ipv4> <mask>
ipcrust <ip>
Examples
# IPv4 with CIDR notation
# IPv4 with dotted-decimal mask
# IPv4 with mask as separate argument
# IPv6
# Host address (no mask)
License
This project is licensed under the GNU General Public License v3.0.