#domain-name #unicode #idna #unicode-text #internationalized #text

unic-idna

UNIC — Unicode IDNA Compatibility Processing

8 releases (breaking)

0.9.0 Mar 3, 2019
0.8.0 Jan 2, 2019
0.7.0 Feb 7, 2018
0.6.0 Sep 22, 2017
0.1.1 Jun 20, 2017

#1772 in Text processing

Download history 60/week @ 2023-12-08 82/week @ 2023-12-15 51/week @ 2023-12-22 46/week @ 2023-12-29 172/week @ 2024-01-05 127/week @ 2024-01-12 122/week @ 2024-01-19 125/week @ 2024-01-26 80/week @ 2024-02-02 90/week @ 2024-02-09 252/week @ 2024-02-16 97/week @ 2024-02-23 152/week @ 2024-03-01 171/week @ 2024-03-08 110/week @ 2024-03-15 119/week @ 2024-03-22

569 downloads per month
Used in 6 crates (2 directly)

MIT/Apache

370KB
2K SLoC

UNIC — Unicode IDNA Compatibility Processing

Crates.io Documentation

This UNIC component implements algorithms from [Unicode® Technical Standard #46

Notes

Initial code for this component is based on idna crate from rust-url.


lib.rs:

UNIC — Unicode IDNA Compatibility Processing

A component of unic: Unicode and Internationalization Crates for Rust.

This UNIC component implements algorithms from Unicode Technical Standard #46 - Unicode IDNA Compatibility Processing.

Quoting from UTS #46’s introduction:

Initially, domain names were restricted to ASCII characters. A system was introduced in 2003 for internationalized domain names (IDN). This system is called Internationalizing Domain Names for Applications, or IDNA2003 for short. This mechanism supports IDNs by means of a client software transformation into a format known as Punycode.

A revision of IDNA was approved in 2010 (IDNA2008). This revision has a number of incompatibilities with IDNA2003.

The incompatibilities force implementers of client software, such as browsers and emailers, to face difficult choices during the transition period as registries shift from IDNA2003 to IDNA2008. This document specifies a mechanism that minimizes the impact of this transition for client software, allowing client software to access domains that are valid under either system.

Dependencies