Expand description
§Introduction
3511 emojis and 4580 emoji variants with localization data in 143 languages
This crate contains a huge amount of data about every emoji ever.
Some of the data includes:
- Name
- Glyph
- Unicode Release Version
- Classification
- Variants
- Annotations in many languages
This crate also provides functions for searching through emojis by name and glyph, as well as several fuzzy search functions.
§Quickstart
fn main() {
println!("{}", emoji::food_and_drink::food_marine::CRAB.glyph);
}
See more examples here.
§Languages
By default, only English annotations are compiled in. To enable other languages, use the feature corresponding to that languge. An exhaustive list of supported languages can be found here.
Modules§
- activities
- animals_
and_ nature - component
- flags
- food_
and_ drink - lookup_
by_ glyph - Defines functions for searching through and iterating over emojis by glyph
Includes variants - lookup_
by_ name - Defines functions for searching through and iterating over emojis by name
Yields exact matches only, but is extremely fast
Does not include variants - objects
- people_
and_ body - search
- Fuzzy search algorithms for general purpose searching
- smileys_
and_ emotion - symbols
- travel_
and_ places
Structs§
- Annotation
- Annotation meta-data for each emoji
- Emoji
- Contains all information about an emoji
See the CLDR for specific examples of all fields exceptvariants
.
Enums§
- Status
- Emoji status qualifier
In nearly every case, MinimallyQualified or Unqualified will show up in emoji variants. A complete tool needs only to support all of the FullyQualified emojis.
Constants§
- ANNOTATION_
LANGS_ AVAILABLE - Enabled annotation languages (feature dependent)
Defaults to["en"]
. Enable theXX
features for each language to include annotations for another language. For example, to include Finnish annotations, use thefi
feature. - ANNOTATION_
LANGS_ TOTAL - All annotation languages (feature independent)
- UNICODE_
RELEASE_ TIME - The rfc3339 formatted time of the unicode release that this crate is compiled against
- UNICODE_
VERSION - The unicode release version that this crate is compiled against