Crate emoji

Source
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 except variants.

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 the XX features for each language to include annotations for another language. For example, to include Finnish annotations, use the fi 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