#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

#2085 in Text processing

Download history 152/week @ 2023-08-11 136/week @ 2023-08-18 115/week @ 2023-08-25 165/week @ 2023-09-01 185/week @ 2023-09-08 134/week @ 2023-09-15 288/week @ 2023-09-22 259/week @ 2023-09-29 205/week @ 2023-10-06 223/week @ 2023-10-13 235/week @ 2023-10-20 195/week @ 2023-10-27 140/week @ 2023-11-03 292/week @ 2023-11-10 129/week @ 2023-11-17 117/week @ 2023-11-24

709 downloads per month
Used in 8 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