Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/inspirateur/twemoji-rs

Small Rust crate to provide the twemoji icon corresponding to a string
https://github.com/inspirateur/twemoji-rs

emoji rust twemoji

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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

```rust
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/](https://twemoji.twitter.com/) for the images !