hostname-validator

Crates.iohostname-validator
lib.rshostname-validator
version1.1.1
sourcesrc
created_at2018-11-02 16:58:16.77055
updated_at2022-03-26 15:57:32.809698
descriptionValidate hostnames according to IETF RFC 1123
homepage
repositoryhttps://github.com/pop-os/hostname-validator
max_upload_size
id94352
size5,008
Jeremy Soller (jackpot51)

documentation

README

hostname-validator

Rust crate for validating a hostname according to the IETF RFC 1123.

extern crate hostname_validator;

let valid = "VaLiD-HoStNaMe";
let invalid = "-invalid-name";

assert!(hostname_validator::is_valid(valid));
assert!(!hostname_validator::is_valid(invalid));
Commit count: 6

cargo fmt