Skip to content

Inspirateur/twemoji-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 !

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages