Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/inspirateur/twemoji-rs
- Owner: Inspirateur
- License: unlicense
- Created: 2023-01-29T16:10:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T09:21:03.000Z (almost 2 years ago)
- Last Synced: 2024-10-08T19:43:55.877Z (about 1 month ago)
- Topics: emoji, rust, twemoji
- Language: Rust
- Homepage: https://crates.io/crates/twemoji-rs
- Size: 3.19 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 !