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

#157 in Text processing

Download history 2413/week @ 2024-07-22 2340/week @ 2024-07-29 2336/week @ 2024-08-05 2333/week @ 2024-08-12 2078/week @ 2024-08-19 2032/week @ 2024-08-26 2206/week @ 2024-09-02 2195/week @ 2024-09-09 2134/week @ 2024-09-16 1947/week @ 2024-09-23 1722/week @ 2024-09-30 1293/week @ 2024-10-07 1294/week @ 2024-10-14 1384/week @ 2024-10-21 1620/week @ 2024-10-28 1754/week @ 2024-11-04

6,211 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