6 stable releases

1.0.8 Sep 19, 2023
1.0.7 Jul 16, 2022
1.0.6 Aug 17, 2021
1.0.3 Mar 21, 2020
1.0.0 Dec 22, 2018

#198 in Text processing

Download history 1848/week @ 2024-09-25 1705/week @ 2024-10-02 1187/week @ 2024-10-09 1222/week @ 2024-10-16 1549/week @ 2024-10-23 1619/week @ 2024-10-30 1723/week @ 2024-11-06 1702/week @ 2024-11-13 1551/week @ 2024-11-20 1590/week @ 2024-11-27 1895/week @ 2024-12-04 717/week @ 2024-12-11 677/week @ 2024-12-18 554/week @ 2024-12-25 572/week @ 2025-01-01 921/week @ 2025-01-08

2,799 downloads per month
Used in 5 crates

MIT license

78KB
2.5K SLoC

GitHub emoji for Rust

Full, up-to-date database of GitHub emoji which have Unicode equivalents. Pre-generated and hashed at compile time for fast lookup.

Useful when rendering GitLab/GitHub-flavored Markdown, although this crate does not parse any Markdown itself.

Used by lib.rs website.

Example usage

let emoji = gh_emoji::get("smile");
assert_eq!(emoji, Some("😄"));
let replacer = gh_emoji::Replacer::new();
let text = replacer.replace_all(":crocodile:, see you in a while!");

Dependencies

~2.9–4MB
~69K SLoC