emojic 0.2.0

Emoji constants
Documentation

emojic 😀 🙂 😇

Emoji constants for your rusty strings. This crate is rustlang port of emoji written by @enescakir

License

📦 Cargo.toml

emojic = {git = "https://github.com/orhanbalci/emojic.git"}

🔧 Example

use emojic::constants::*;

fn main() {
    println!("Hello {}", WAVING_HAND);
    println!(
        "I'm {} from {}",
        MAN_TECHNOLOGIST,
        FLAG_TURKEY
    );
    println!(
        "Different skin tones default {} light {} dark {}",
        THUMBS_UP,
        OK_HAND.tone(vec![Tone::LIGHT]),
        CALL_ME_HAND.tone(vec![Tone::DARK])
    );
    println!(
        "Emojis with multiple skin tones.\nBoth medium: {} light and dark: {}",
        PEOPLE_HOLDING_HANDS.tone(vec![Tone::MEDIUM]),
        PEOPLE_HOLDING_HANDS.tone(vec![Tone::LIGHT, Tone::DARK])
    );
}

🖨️ Output

Hello 👋
I'm 👨‍💻 from 🇹🇷
Different skin tones default 👍 light 👌🏻 dark 🤙🏿
Emojis with multiple skin tones.
Both medium: 🧑🏽‍🤝‍🧑🏽 light and dark: 🧑🏻‍🤝‍🧑🏿

This package contains emojis constants based on Full Emoji List v13.0.

CALL_ME_HAND // 🤙
CALL_ME_HAND.tone(vec![Tone::DARK]) // 🤙🏿

Also, it has additional emoji aliases from github/gemoji.

alias::parse(":+1:") // 👍
alias::parse(":100:") // 💯