servo / rust-url

URL parser for Rust
https://docs.rs/url/
Apache License 2.0
1.27k stars 317 forks source link

Host should implement deserialize to parse strings #895

Open muniategui opened 5 months ago

muniategui commented 5 months ago

Right now, trying to deserialize a domain.name.com to a Host leads to:

unknown variant domain.name.com, expected one of Domain, Ipv4, Ipv6'

Probably implementing deserialize manually with the host::parse would fix this.