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

#242 in Text processing

Download history 1583/week @ 2024-11-17 1481/week @ 2024-11-24 2029/week @ 2024-12-01 1072/week @ 2024-12-08 603/week @ 2024-12-15 604/week @ 2024-12-22 619/week @ 2024-12-29 680/week @ 2025-01-05 1465/week @ 2025-01-12 1049/week @ 2025-01-19 901/week @ 2025-01-26 1548/week @ 2025-02-02 1073/week @ 2025-02-09 858/week @ 2025-02-16 816/week @ 2025-02-23 620/week @ 2025-03-02

3,504 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.7–4MB
~68K SLoC