A collection of emoji constants for Rust applications, particularly useful for CLI tools and terminal applications that want to add visual flair to their output.
Add this to your Cargo.toml:
[dependencies]
emojis-rs = "0.1.2"use emojis_rs::*;
fn main() {
println!(" {} Color set successfully.", EMOJI_CHECK);
println!(" {} Failed to load configuration.", EMOJI_CROSS);
println!(" {} Processing...", EMOJI_HOURGLASS);
println!(" {} Task completed!", EMOJI_SUCCESS);
}use emojis_rs::*;
fn main() {
println!("{EMOJI_CHECK} Color set successfully.");
println!("{EMOJI_CROSS} Failed to load configuration.");
println!("{EMOJI_HOURGLASS} Processing {} files...", 42);
println!("{EMOJI_SUCCESS} Task completed!");
}| Constant | Emoji | Description |
|---|---|---|
EMOJI_CHECK |
โ | Success/completion |
EMOJI_CROSS |
โ | Error/failure |
EMOJI_WARNING |
Warning/caution | |
EMOJI_INFO |
โน๏ธ | Information |
EMOJI_SUCCESS |
๐ | Celebration/success |
EMOJI_ERROR |
๐ฅ | Error/explosion |
EMOJI_QUESTION |
โ | Question/unknown |
EMOJI_EXCLAMATION |
โ | Important/attention |
EMOJI_PROHIBITED |
๐ซ | Not allowed/prohibited |
EMOJI_WRONG_WAY |
โ | Wrong direction |
EMOJI_HEAVY_CHECK |
โ๏ธ | Heavy check mark |
EMOJI_BALLOT_X |
โ | Ballot X |
EMOJI_THUMBS_UP |
๐ | Approval/like |
EMOJI_THUMBS_DOWN |
๐ | Disapproval/dislike |
EMOJI_OK_HAND |
๐ | OK/perfect |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_RELOAD |
๐ | Reload/refresh |
EMOJI_REFRESH |
๐ | Refresh clockwise |
EMOJI_HOURGLASS |
โณ | Processing/waiting |
EMOJI_HOURGLASS_DONE |
โ | Completed process |
EMOJI_STOPWATCH |
โฑ๏ธ | Timing/benchmark |
EMOJI_TIMER |
โฒ๏ธ | Timer clock |
EMOJI_CLOCK |
๐ | Time/schedule |
EMOJI_PLAY |
Start/play | |
EMOJI_PAUSE |
โธ๏ธ | Pause/stop |
EMOJI_STOP |
โน๏ธ | Stop/halt |
EMOJI_FAST_FORWARD |
โฉ | Fast forward |
EMOJI_REWIND |
โช | Rewind/go back |
EMOJI_REPEAT |
๐ | Repeat/loop |
EMOJI_REPEAT_ONCE |
๐ | Repeat once |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_BOLT |
โก | Fast/lightning speed |
EMOJI_ZAP |
โก | Electric/energy |
EMOJI_FIRE |
๐ฅ | Hot/trending |
EMOJI_ROCKET |
๐ | Launch/fast |
EMOJI_RACING_CAR |
๐๏ธ | Speed/performance |
EMOJI_AIRPLANE |
Travel/deployment | |
EMOJI_DASH |
๐จ | Speed/quick |
EMOJI_COMET |
โ๏ธ | Fast moving |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_TARGET |
๐ฏ | Goal/target |
EMOJI_RADAR |
๐ก | Scanning/detection |
EMOJI_COMPASS |
๐งญ | Direction/navigation |
EMOJI_MAP |
๐บ๏ธ | Map/location |
EMOJI_LOCATION |
๐ | Pin/location |
EMOJI_PIN |
๐ | Pin/mark |
EMOJI_EYE |
๐๏ธ | Watch/observe |
EMOJI_EYES |
๐ | Looking/monitoring |
EMOJI_MAGNIFYING_GLASS |
๐ | Search/examine |
EMOJI_MAGNIFYING_GLASS_RIGHT |
๐ | Search right |
EMOJI_TELESCOPE |
๐ญ | Long range view |
EMOJI_MICROSCOPE |
๐ฌ | Detailed analysis |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_RED_CIRCLE |
๐ด | Error/stop |
EMOJI_GREEN_CIRCLE |
๐ข | Success/go |
EMOJI_YELLOW_CIRCLE |
๐ก | Warning/caution |
EMOJI_BLUE_CIRCLE |
๐ต | Information/neutral |
EMOJI_PURPLE_CIRCLE |
๐ฃ | Special/custom |
EMOJI_BROWN_CIRCLE |
๐ค | Neutral/earth |
EMOJI_BLACK_CIRCLE |
โซ | Off/disabled |
EMOJI_WHITE_CIRCLE |
โช | Empty/available |
EMOJI_ORANGE_CIRCLE |
๐ | Alert/attention |
EMOJI_LARGE_RED_SQUARE |
๐ฅ | Error block |
EMOJI_LARGE_GREEN_SQUARE |
๐ฉ | Success block |
EMOJI_LARGE_YELLOW_SQUARE |
๐จ | Warning block |
EMOJI_LARGE_BLUE_SQUARE |
๐ฆ | Info block |
EMOJI_BLACK_SQUARE |
โฌ | Solid block |
EMOJI_WHITE_SQUARE |
โฌ | Empty block |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_BELL |
๐ | Notification/alert |
EMOJI_BELL_SLASH |
๐ | Muted/no notifications |
EMOJI_MUTE |
๐ | Muted/silent |
EMOJI_SPEAKER_LOW |
๐ | Low volume |
EMOJI_SPEAKER_MEDIUM |
๐ | Medium volume |
EMOJI_SPEAKER_HIGH |
๐ | High volume |
EMOJI_MEGAPHONE |
๐ข | Announcement |
EMOJI_LOUDSPEAKER |
๐ฃ | Public announcement |
EMOJI_ALARM_CLOCK |
โฐ | Alarm/reminder |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_BRAIN |
๐ง | AI/intelligence |
EMOJI_ROBOT |
๐ค | Robot/automation |
EMOJI_GEAR |
โ๏ธ | Settings/configuration |
EMOJI_WRENCH |
๐ง | Tools/maintenance |
EMOJI_HAMMER |
๐จ | Build/construction |
EMOJI_SCREWDRIVER |
๐ช | Assembly/repair |
EMOJI_NUT_AND_BOLT |
๐ฉ | Hardware/assembly |
EMOJI_LINK |
๐ | Connection/link |
EMOJI_CHAINS |
โ๏ธ | Blockchain/connection |
EMOJI_ELECTRIC_PLUG |
๐ | Power/connection |
EMOJI_BATTERY |
๐ | Power/energy |
EMOJI_COMPUTER |
๐ป | Computing/laptop |
EMOJI_DESKTOP |
๐ฅ๏ธ | Desktop computer |
EMOJI_KEYBOARD |
โจ๏ธ | Input/typing |
EMOJI_MOUSE |
๐ฑ๏ธ | Mouse/cursor |
EMOJI_GAMEPAD |
๐ฎ | Gaming/controls |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_FOLDER |
๐ | Directory/folder |
EMOJI_FOLDER_OPEN |
๐ | Open folder |
EMOJI_FILE |
๐ | Document/file |
EMOJI_PAGE |
๐ | Page/document |
EMOJI_DOCUMENT |
๐ | Clipboard/document |
EMOJI_CLIPBOARD |
๐ | Copy/paste |
EMOJI_CARD_INDEX |
๐ | Index/catalog |
EMOJI_CARD_BOX |
๐๏ธ | File box/storage |
EMOJI_FILE_CABINET |
๐๏ธ | File cabinet |
EMOJI_WASTEBASKET |
๐๏ธ | Delete/trash |
EMOJI_DATABASE |
๐๏ธ | Database/storage |
EMOJI_FLOPPY_DISK |
๐พ | Save/storage |
EMOJI_HARD_DISK |
๐ฟ | Hard drive |
EMOJI_DVD |
๐ | Optical disc |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_CHAT |
๐ฌ | Chat/message |
EMOJI_SPEECH |
๐ญ | Thought/idea |
EMOJI_MAIL |
โ๏ธ | Email/mail |
EMOJI_EMAIL |
๐ง | Email/electronic mail |
EMOJI_INBOX |
๐ฅ | Incoming/inbox |
EMOJI_OUTBOX |
๐ค | Outgoing/outbox |
EMOJI_PACKAGE |
๐ฆ | Package/delivery |
EMOJI_MAILBOX |
๐ช | Mailbox/mail |
EMOJI_TELEPHONE |
โ๏ธ | Phone/call |
EMOJI_MOBILE_PHONE |
๐ฑ | Mobile/smartphone |
EMOJI_SATELLITE |
๐ก | Satellite/communication |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_LOCK |
๐ | Locked/secure |
EMOJI_UNLOCK |
๐ | Unlocked/open |
EMOJI_LOCK_WITH_KEY |
๐ | Secure with key |
EMOJI_KEY |
๐ | Key/access |
EMOJI_OLD_KEY |
๐๏ธ | Old key/legacy |
EMOJI_SHIELD |
๐ก๏ธ | Protection/security |
EMOJI_DETECTIVE |
๐ต๏ธ | Investigation/security |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_GLOBE |
๐ | Global/internet |
EMOJI_EARTH_AMERICAS |
๐ | Earth Americas |
EMOJI_EARTH_EUROPE |
๐ | Earth Europe/Africa |
EMOJI_EARTH_ASIA |
๐ | Earth Asia/Australia |
EMOJI_SIGNAL_STRENGTH |
๐ถ | Signal/connectivity |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_ARROW_UP |
โฌ๏ธ | Up/increase |
EMOJI_ARROW_DOWN |
โฌ๏ธ | Down/decrease |
EMOJI_ARROW_LEFT |
โฌ ๏ธ | Left/back |
EMOJI_ARROW_RIGHT |
โก๏ธ | Right/forward |
EMOJI_ARROW_UPPER_LEFT |
Upper left diagonal | |
EMOJI_ARROW_UPPER_RIGHT |
Upper right diagonal | |
EMOJI_ARROW_LOWER_LEFT |
Lower left diagonal | |
EMOJI_ARROW_LOWER_RIGHT |
Lower right diagonal | |
EMOJI_ARROW_UP_DOWN |
Vertical/bidirectional | |
EMOJI_ARROW_LEFT_RIGHT |
Horizontal/bidirectional |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_CHART_INCREASING |
๐ | Growth/trending up |
EMOJI_CHART_DECREASING |
๐ | Decline/trending down |
EMOJI_BAR_CHART |
๐ | Statistics/data |
EMOJI_ABACUS |
๐งฎ | Calculation/counting |
EMOJI_STRAIGHT_RULER |
๐ | Measurement/length |
EMOJI_TRIANGULAR_RULER |
๐ | Geometry/angles |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_PAINT |
๐จ | Art/design |
EMOJI_PAINTBRUSH |
๐๏ธ | Painting/creativity |
EMOJI_CRAYON |
๐๏ธ | Coloring/drawing |
EMOJI_PENCIL |
โ๏ธ | Writing/editing |
EMOJI_PEN |
๐๏ธ | Writing/documentation |
EMOJI_FOUNTAIN_PEN |
๐๏ธ | Formal writing |
EMOJI_MEMO |
๐ | Notes/documentation |
EMOJI_BOOKMARK |
๐ | Bookmark/save |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_LAMP |
๐ก | Idea/inspiration |
EMOJI_CANDLE |
๐ฏ๏ธ | Light/atmosphere |
EMOJI_FLASHLIGHT |
๐ฆ | Illumination/search |
EMOJI_SPARKLES |
โจ | Magic/special |
EMOJI_GLOWING_STAR |
๐ | Excellence/featured |
EMOJI_DIZZY |
๐ซ | Dizzy/confused |
EMOJI_COLLISION |
๐ฅ | Impact/explosion |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_TROPHY |
๐ | Victory/achievement |
EMOJI_MEDAL |
๐ | Award/recognition |
EMOJI_FIRST_PLACE |
๐ฅ | First place/gold |
EMOJI_SECOND_PLACE |
๐ฅ | Second place/silver |
EMOJI_THIRD_PLACE |
๐ฅ | Third place/bronze |
EMOJI_CROWN |
๐ | Royalty/premium |
EMOJI_GEM |
๐ | Valuable/precious |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_RAINBOW |
๐ | Diversity/colorful |
EMOJI_SUN |
โ๏ธ | Sunny/bright |
EMOJI_CLOUD |
โ๏ธ | Cloud/weather |
EMOJI_RAIN |
๐ง๏ธ | Rain/wet |
EMOJI_SNOW |
โ๏ธ | Snow/cold |
EMOJI_LIGHTNING |
โก | Lightning/power |
EMOJI_WAVE |
๐ | Wave/fluid |
EMOJI_DROPLET |
๐ง | Water/liquid |
EMOJI_MOUNTAIN |
โฐ๏ธ | Mountain/challenge |
EMOJI_VOLCANO |
๐ | Volcano/eruption |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_RUST |
๐ฆ | Rust programming |
EMOJI_SNAKE |
๐ | Python programming |
EMOJI_COFFEE |
โ | Java programming |
EMOJI_DIAMOND |
๐ | Ruby programming |
EMOJI_ELEPHANT |
๐ | PHP programming |
EMOJI_BUG |
๐ | Bug/debugging |
EMOJI_ATOM |
โ๏ธ | React/atomic |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_ZERO |
0๏ธโฃ | Number zero |
EMOJI_ONE |
1๏ธโฃ | Number one |
EMOJI_TWO |
2๏ธโฃ | Number two |
EMOJI_THREE |
3๏ธโฃ | Number three |
EMOJI_FOUR |
4๏ธโฃ | Number four |
EMOJI_FIVE |
5๏ธโฃ | Number five |
EMOJI_SIX |
6๏ธโฃ | Number six |
EMOJI_SEVEN |
7๏ธโฃ | Number seven |
EMOJI_EIGHT |
8๏ธโฃ | Number eight |
EMOJI_NINE |
9๏ธโฃ | Number nine |
EMOJI_TEN |
๐ | Number ten |
EMOJI_HASH |
#๏ธโฃ | Hash/number sign |
EMOJI_PLUS |
โ | Addition/plus |
EMOJI_MINUS |
โ | Subtraction/minus |
EMOJI_MULTIPLY |
โ๏ธ | Multiplication |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_PARTY |
๐ | Celebration/party |
EMOJI_CONFETTI |
๐ | Confetti/celebration |
EMOJI_BALLOON |
๐ | Balloon/party |
EMOJI_GIFT |
๐ | Gift/present |
EMOJI_CLAP |
๐ | Applause/appreciation |
EMOJI_MUSCLE |
๐ช | Strength/power |
EMOJI_PEACE |
โ๏ธ | Peace/victory |
EMOJI_HAND_WAVE |
๐ | Hello/goodbye |
EMOJI_HANDSHAKE |
๐ค | Agreement/partnership |
EMOJI_PRAY |
๐ | Thank you/please |
EMOJI_THINKING |
๐ค | Thinking/pondering |
EMOJI_SHRUG |
๐คท | Don't know/unsure |
| Constant | Emoji | Description |
|---|---|---|
EMOJI_RECYCLE |
โป๏ธ | Recycle/reuse |
EMOJI_TRIDENT |
๐ฑ | Trident/power |
EMOJI_BEGINNER |
๐ฐ | Beginner/new |
EMOJI_BALLOT_BOX_CHECK |
โ๏ธ | Checked/completed |
EMOJI_RADIO_BUTTON |
๐ | Radio button/option |
EMOJI_SMALL_BLUE_DIAMOND |
๐น | Small blue diamond |
EMOJI_SMALL_ORANGE_DIAMOND |
๐ธ | Small orange diamond |
EMOJI_LARGE_BLUE_DIAMOND |
๐ท | Large blue diamond |
EMOJI_LARGE_ORANGE_DIAMOND |
๐ถ | Large orange diamond |
- 200+ emoji constants - Comprehensive collection for CLI applications
- Organized categories - Emojis grouped by function and context
- Zero dependencies - No external dependencies required
- Well documented - Clear documentation with examples
Note: Emoji rendering depends on your terminal and font support. Test in your target environment. Works on my machine.
use emojis_rs::*;
fn main() {
println!("{EMOJI_HOURGLASS} Starting backup process...");
println!("{EMOJI_FOLDER} Scanning {} files", 1000);
println!("{EMOJI_ARROW_RIGHT} Copying to backup location");
println!("{EMOJI_CHECK} Backup completed successfully!");
println!("{EMOJI_PARTY} All done! {EMOJI_THUMBS_UP}");
}โณ Starting backup process...
๐ Scanning 1000 files
โก๏ธ Copying to backup location
โ
Backup completed successfully!
๐ All done! ๐
use emojis_rs::*;
fn show_status() {
println!("{EMOJI_COMPUTER} System Status:");
println!(" CPU: {EMOJI_GREEN_CIRCLE} 23%");
println!(" Memory: {EMOJI_YELLOW_CIRCLE} 67%");
println!(" Disk: {EMOJI_GREEN_CIRCLE} 45%");
println!(" Network: {EMOJI_RED_CIRCLE} Offline");
}๐ป System Status:
CPU: ๐ข 23%
Memory: ๐ก 67%
Disk: ๐ข 45%
Network: ๐ด Offline
use emojis_rs::*;
fn build_status() {
println!("{EMOJI_RUST} Compiling Rust project...");
println!("{EMOJI_GEAR} Running optimizations...");
println!("{EMOJI_BOLT} Build completed in 2.3s");
println!("{EMOJI_TROPHY} No warnings or errors!");
}๐ฆ Compiling Rust project...
โ๏ธ Running optimizations...
โก Build completed in 2.3s
๐ No warnings or errors!
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributions are welcome! Please feel free to submit a Pull Request.
- Add the constant to
src/lib.rs - Update this README with the new emoji
- Add tests if needed
cargo test
cargo test display_all_emojis -- --nocapture # See all emojis in terminal