#unicode-character-properties #unicode #text #unicode-text #no-alloc

no-std unicode-properties

Query character Unicode properties according to UAX #44 and UTR #51

5 releases

0.1.4 Oct 30, 2025
0.1.3 Sep 30, 2024
0.1.2 Aug 19, 2024
0.1.1 Jan 18, 2024
0.1.0 Jul 27, 2023

#113 in Text processing

Download history 1098139/week @ 2025-09-24 1103729/week @ 2025-10-01 1054994/week @ 2025-10-08 1086760/week @ 2025-10-15 1156666/week @ 2025-10-22 1206914/week @ 2025-10-29 1246900/week @ 2025-11-05 1302807/week @ 2025-11-12 1546783/week @ 2025-11-19 1183222/week @ 2025-11-26 1534221/week @ 2025-12-03 1637836/week @ 2025-12-10 1447079/week @ 2025-12-17 806560/week @ 2025-12-24 1057193/week @ 2025-12-31 1754593/week @ 2026-01-07

5,373,722 downloads per month
Used in 4,697 crates (29 directly)

MIT/Apache

300KB
3.5K SLoC

Query character Unicode properties according to Unicode Standard Annex #44 and Unicode Technical Standard #51 rules.

Currently we support the General_Category property as well as Emoji and Emoji_Component.

Future properties can be added as requested.

use unicode_properties::UnicodeEmoji;
use unicode_properties::UnicodeGeneralCategory;

let ch = '🦀'; // U+1F980 CRAB
let is_emoji = ch.is_emoji_char();
let group = ch.general_category_group();
println!("{}({:?})", ch, group);
println!("The above char {} for use as emoji char.",
         if is_emoji { "is recommended" } else { "is not recommended" });

Features

general-category

Provides the most general classification of a character, based on its primary characteristic.

emoji

Provides the emoji character properties of a character.


unicode-properties

Build Status Current Version License: MIT/Apache-2.0

No runtime deps

Features