hostname-validator 1.1.1

Validate hostnames according to IETF RFC 1123
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# hostname-validator

Rust crate for validating a hostname according to the [IETF RFC 1123](https://tools.ietf.org/html/rfc1123).

```rust
extern crate hostname_validator;

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

assert!(hostname_validator::is_valid(valid));
assert!(!hostname_validator::is_valid(invalid));
```