hostname validation: add validation
hostname validation: add validation: a task in smol-software-harbor (Harbor dataset). valid label in src/lib.rs accepts labels that DNS does not allow. Add the two missing rules: a label is at most 63 characters long, and it must not start or end with a hyphen. Run cargo test --offline -q .
The task
`valid_label` in `src/lib.rs` accepts labels that DNS does not allow. Add the two missing rules: a label is at most 63 characters long, and it must not start or end with a hyphen. Run `cargo test --offline -q`.
Part of efederici/smol-software-harbor.