Registry / networking / ip
library1.1.1rscratesunverified

Provides the IpAddr enum for representing IPv4 or IPv6 addresses. Note: deprecated in favor of std::net::IpAddr since Rust 1.7.0.

# Cargo.toml [dependencies] ip = "1.1.1"
INSTALL
IMPORT
SIG · IP
I
ip
networkingrustv1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IpAddr
use ip::IpAddr;

Parse and display an IP address using the deprecated IpAddr type.

use ip::IpAddr; fn main() { let addr: IpAddr = "127.0.0.1".parse().unwrap(); println!("{}", addr); }
Debug
Known issues
breakingThis crate is deprecated; use `std::net::IpAddr` instead.
fix
Replace `use ip::IpAddr` with `use std::net::IpAddr`.
affects: >=1.0.0
Upgrade
Version history
1.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ip — cargo add ip · libregistry