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
6,211 downloads per month
Used in 5 crates
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