# murmur [![GitHub](https://img.shields.io/badge/github-murmur-blue.svg)](https://github.com/andretcarpizo/murmur) [![Crates.io](https://img.shields.io/crates/v/murmur.svg)](https://crates.io/crates/murmur) [![Documentation](https://docs.rs/murmur/badge.svg)](https://docs.rs/murmur) [![GitHub Actions](https://github.com/andretcarpizo/murmur/actions/workflows/rust.yml/badge.svg)](https://github.com/andretcarpizo/murmur/actions) [![License](https://img.shields.io/crates/l/murmur.svg)](https://github.com/andretcarpizo/murmur/blob/main/LICENSE.md) A flexible library to build messages with `NerdFonts` or `Unicode` icons. Table of Contents 1. [Intro](#Intro) 2. [`IconKind` Variants](#iconkind-variants) 3. [`Whisper` Methods](#whisper-methods) - [`new()`](#new) - [`icon()`](#icon) - [`message()`](#message) - [`messages()`](#messages) - [`whisper()`](#whisper) 4. [`WhisperError`](#whisper-error) 5. [Examples](https://github.com/andretcarpizo/murmur/tree/main/examples) ## Intro There is only a `Whisper` struct and an `IconKind` enum. ```rust use murmur::{Whisper, IconKind}; ``` ## `IconKind` Variants The `IconKind` enum variants map to a specific `Unicode` or `NerdFont` icon, each icon has a default color. Casing conforms to [Rust API Guidelines](https://rust-lang.github.io/api-guidelines/naming.html). - `NfFaTimes` - `NfFaCheck` - `NfFaInfoCircle` - `NfFaRefresh` - `NfFaWarning` - `NfFaBug` - `UnicodeCrossMark` - `UnicodeCheckMark` - `UnicodeInformationSource` - `UnicodeGear` - `UnicodeWarningSign` - `UnicodeBug` For a full list of the currently supported icons, see the `IconKind` [enum](https://docs.rs/murmur/1.2.1/murmur/enum.IconKind.htmlhttps://docs.rs/murmur/1.2.1/murmur/enum.IconKind.html). ```rust use murmur::{Whisper, IconKind}; use owo_colors::OwoColorize; Whisper::new() .icon(IconKind::NfFaCheck) .message("message") .message("message".red()) .whisper() .unwrap(); ```