Crates.io | emoji_converter |
lib.rs | emoji_converter |
version | 0.1.0 |
source | src |
created_at | 2024-11-02 08:13:00.27759 |
updated_at | 2024-11-02 08:13:00.27759 |
description | Converts text to emojis |
homepage | https://github.com/FrancescoXX/emoji-conv |
repository | https://github.com/FrancescoXX/emoji-conv |
max_upload_size | |
id | 1432664 |
size | 5,363 |
A Rust library to convert words in a sentence into emojis! This library provides a fun and simple way to add emoji representations to text.
Add this to your Cargo.toml
:
[dependencies]
emoji_converter = "0.1.0"
use emoji_converter::convert_to_emoji;
fn main() {
let sentence = "Hello world! Love Pizza!";
let emoji_sentence = convert_to_emoji(sentence);
println!("{}", emoji_sentence);
}
With documentation in place, our crate is ready for users to understand its purpose, how to use it, and what to expect from its functions. Next, we’ll move on to preparing Cargo.toml
for publishing on crates.io.