Closed SimonSapin closed 8 years ago
Yes, I would be interested. That would be great.
Alright, https://crates.io/crates/idna is published with the source currently at https://github.com/servo/rust-url/tree/idna-crate/idna
It currently doesn’t use Cow::Borrowed
to avoid copying when possible like your module does, but that should be possible to add.
This crate implements IDNA with Punycode, but seems to be missing the "Nameprep" part. rust-url has that in a module: https://github.com/servo/rust-url/blob/master/src/idna.rs If you’re interested this could be a separate crate.