murarth / resolve

DNS communication protocol
Apache License 2.0
25 stars 8 forks source link

IDNA NamePrep #4

Closed SimonSapin closed 8 years ago

SimonSapin commented 8 years ago

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.

murarth commented 8 years ago

Yes, I would be interested. That would be great.

SimonSapin commented 8 years ago

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.