| Crates.io | random-unicode-emoji |
| lib.rs | random-unicode-emoji |
| version | 1.1.2 |
| created_at | 2023-03-24 00:37:20.539746+00 |
| updated_at | 2026-01-26 00:29:23.3945+00 |
| description | A simple Rust crate that returns random Unicode emojis. ⚙️ |
| homepage | https://github.com/NicPWNs/random-unicode-emoji-rs |
| repository | https://github.com/NicPWNs/random-unicode-emoji-rs |
| max_upload_size | |
| id | 818896 |
| size | 6,673,782 |
A simple Rust crate that returns random Unicode emojis. ⚙️
Like this repo? Give it a ⭐ on GitHub!
Install the crate:
cargo add random-unicode-emoji
Use the crate function:
// Use the Library
use random_unicode_emoji::random_emoji;
// Use the Function
println!("{}", random_emoji(1, "latest")[0]);
--> 🍭
// Change the Count
println!("{:?}", random_emoji(3, "latest"));
--> ["🏠", "🥑", "👠"]
// Change the Version
println!("{}", random_emoji(1, "15.0")[0]);
--> 🐒
count: usize (Integer) - Count of emojis to return.version: &str (String) - Version of Unicode to use.Vec<String> (Vector of Strings)Update the crate to the latest version:
cargo update -p random-unicode-emoji
Uses Unicode Standard Emoji from Unicode.org
4.0, 5.0, 11.0, 12.0, 12.1, 13.0, 13.1, 14.0, 15.0, 15.1, 16.0, 17.0 (latest)
Uses latest version by default.
This is the Rust ⚙️ version. There is also a JavaScript 📜 and Python 🐍 version.