Extended types for working with net in Rust.
English | 简体中文
Installation
[]
= "0.1"
Example
use HostAddr;
// parse domain to String
let addr: = "example.com".parse.unwrap;
// parse domain with port to Arc<str>
let addr: = "example.com:8080".parse.unwrap;
// parse domain to Vec<u8>
let addr: = "example.com".parse.unwrap;
// parse a fully qualified domain name with port to Box<str>
let addr: = "example.com.:8080".parse.unwrap;
License
hostaddr is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2025 Al Liu.