#text #unicode #idna #punycode

unic-idna-punycode

UNIC — Implementation of Punycode (RFC 3492) algorithm

9 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

#4 in #idna

Download history 70/week @ 2021-09-28 68/week @ 2021-10-05 72/week @ 2021-10-12 47/week @ 2021-10-19 53/week @ 2021-10-26 76/week @ 2021-11-02 80/week @ 2021-11-09 61/week @ 2021-11-16 60/week @ 2021-11-23 105/week @ 2021-11-30 100/week @ 2021-12-07 87/week @ 2021-12-14 58/week @ 2021-12-21 61/week @ 2021-12-28 87/week @ 2022-01-04 112/week @ 2022-01-11

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

MIT/Apache

11KB
185 lines

UNIC — IDNA — Punycode (RFC 3492)

Crates.io Documentation

This UNIC component implements algorithms from Punycode: A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA).

Notes

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


lib.rs:

UNIC — IDNA — Punycode (RFC 3492)

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

Implementation of Punycode (RFC 3492) algorithm.

Since Punycode fundamentally works on Unicode Code-Points, encode and decode take and return slices and vectors of char. encode_str and decode_to_string provide convenience wrappers that convert from and to Rust’s UTF-8 based str and String types.

No runtime deps