hostport

A Rust crate for parsing, validating, and working with
host:portcombinations.
- host: Domain, network alias, or IP address
- port: Integer in the range
0–65535
Features
- Parse from strings
- Compare with strings
- Host validation
Installation
Usage
use HostPort;
let hostport = new.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
use is_valid_host;
assert!;
assert!;
assert!;
assert!;
Optional Features
serde– Enables serialization and deserialization support viaserde.
or in Cargo.toml:
[]
= { = "x.y.z", = ["serde"] }