random-unicode-emoji

Crates.iorandom-unicode-emoji
lib.rsrandom-unicode-emoji
version1.0.1
sourcesrc
created_at2023-03-24 00:37:20.539746
updated_at2023-03-24 00:57:48.612253
descriptionA simple Rust crate that returns random Unicode emojis. ❤️
homepagehttps://github.com/NicPWNs/random-unicode-emoji-rs
repositoryhttps://github.com/NicPWNs/random-unicode-emoji-rs
max_upload_size
id818896
size4,634,858
Nic Jones (NicPWNs)

documentation

https://github.com/NicPWNs/random-unicode-emoji-rs

README

random-unicode-emoji

crates Unicode downloads stars forks repo size

A simple Rust crate that returns random Unicode emojis. ❤️

Like this repo? Give it a ⭐ on GitHub!

Install

Install the crate:

cargo add random-unicode-emoji

Usage

Use the crate:

// 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]);
--> 🐒

Parameters

  • count: usize (Integer)
  • version: &str (String)

Return Type

  • Vec<String> (Vector of Strings)

Update

Update the crate to the latest version:

cargo update -p random-unicode-emoji

Unicode

Uses Unicode Standard Emoji from Unicode.org

Supported Unicode Versions

4.0, 5.0, 11.0, 12.0, 12.1, 13.0, 13.1, 14.0, 15.0 (latest)

Uses latest version by default.

Language

This is the Rust ⚙️ version. There is also a JavaScript 📜 and Python 🐍 version.

Maintainer

Nic Jones, (NicPWNs)

Commit count: 21

cargo fmt