#punycode #idna #unicode #unic #unicode-text #text

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

#472 in Internationalization (i18n)

Download history 171/week @ 2024-11-16 260/week @ 2024-11-23 292/week @ 2024-11-30 330/week @ 2024-12-07 309/week @ 2024-12-14 234/week @ 2024-12-21 275/week @ 2024-12-28 373/week @ 2025-01-04 263/week @ 2025-01-11 443/week @ 2025-01-18 208/week @ 2025-01-25 186/week @ 2025-02-01 327/week @ 2025-02-08 216/week @ 2025-02-15 288/week @ 2025-02-22 208/week @ 2025-03-01

1,076 downloads per month
Used in 11 crates (3 directly)

MIT/Apache

12KB
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