A simple Rust crate that returns random Unicode emojis. ❤️
Like this repo? Give it a ⭐ on GitHub!
Install the crate:
bash
cargo add random-unicode-emoji
Use the crate:
```rust // Use the Library use randomunicodeemoji::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)version
: &str
(String)Vec<String>
(Vector of Strings)Update the crate to the latest version:
bash
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 (latest)
Uses latest version by default.
This is the Rust ⚙️ version. There is also a JavaScript 📜 and Python 🐍 version.