#icons #emoji #image #twemoji #unicode

twemoji-rs

A word-cloud image generation crate

3 releases

0.1.2 Feb 7, 2023
0.1.1 Feb 7, 2023
0.1.0 Jan 29, 2023

#1673 in Text processing

Download history 3/week @ 2024-02-16 13/week @ 2024-02-23 6/week @ 2024-03-01 2/week @ 2024-03-08 1/week @ 2024-03-15 41/week @ 2024-03-29 5/week @ 2024-04-05 111/week @ 2024-04-12

157 downloads per month
Used in wordcloud-rs

Unlicense

3.5MB

twemoji-rs

Small Rust crate to provide the twemoji icon .png corresponding to a string

use twemoji_rs::get_twemoji;

if let Some(path_to_icon) = get_twemoji("🚀") {
    // The 72x72 Twemoji image for this emoji
    let img = ImageReader::open(path_to_icon)?.decode()?;
} else {
    println!("Couldn't find an icon file :(");
}

All credits to https://twemoji.twitter.com/ for the images !

Dependencies