2 stable releases

2.0.1 Aug 9, 2024
1.0.0 Aug 8, 2024

#1017 in Text processing

Download history 277/week @ 2024-08-04 39/week @ 2024-08-11 30/week @ 2024-09-15 7/week @ 2024-09-22 14/week @ 2024-09-29 7/week @ 2024-10-06

58 downloads per month
Used in mkwebsite

MIT license

4KB

Emojicons Build Status

Emojicons is a simple emoji parser written in Rust focused on ease of use and speed. It uses hashed map for fast lookup and compiled regular expressions for parsing strings.

Example usage

The library is extremely straightforward to use. For transforming strings, use the formatter:

format!("{}", EmojiFormatter("Hello, :smile:!"));

This will return "Hello! 😄"

There is also a macro for direct access to emoji:

emoji!("cat");

Will return a string with the glyph for 🐱.

Dependencies

~4.5MB
~69K SLoC