parse_text/parse_text.rs
1const TEXT: &str = "
2Hello :waving_hand:, I am a :technologist:
3This :memo: is written on a :desktop_computer: not with a :pencil:
4This :memo: of course is not on a :floppy_disk: but on :computer_disk:
5Stored in a :file_folder: that can be :open_file_folder: instead of a :file_cabinet:
6";
7
8fn main() {
9 #[cfg(feature = "alloc")]
10 println!("{}", emojic::text::parse_text(TEXT));
11
12 #[cfg(not(feature = "alloc"))]
13 println!("{}", emojic::text::EmojiTextParser::new(TEXT));
14}