Crates.io | best_skn_message |
lib.rs | best_skn_message |
version | 1.2.1 |
source | src |
created_at | 2024-05-13 17:15:47.48586 |
updated_at | 2024-06-19 10:04:17.404434 |
description | A Simple Message Library For Rust |
homepage | |
repository | https://github.com/skn437/skn-rust-message |
max_upload_size | |
id | 1238691 |
size | 11,324 |
Rust
message
which holds 3 functions to return colored Strings & 3 functions to output formatted static String notification messages
message
Module:It has 3 functions which return colored Strings as output
It has 3 functions which outputs formatted static String notifications
The String returned by each function, doesn't contain new line character i.e. '\n'
1.78.0
cargo add best_skn_message
use best_skn_message::message;
Message
Module, use like the following (Just an example)let error: String = message::error("Error occurred!"); panic!("{} \n", error); let success: String = message::success("Process completed!"); println!("{}", success); let info: String = message::info("Process is safe to pause!"); println!("{}", info); let failure: String = message::action_failure("Copy Files"); // Action name as argument panic!("{} \n", failure); let complete: String = message::action_complete("Read Config File"); // Action name as argument println!("{}", complete); let notify: String = message::action_notify("Run Shell Scripts", "Safe to use without error!"); // Action name & notification info message as arguments println!("{}", notify);
Prodipta Das Logno
& 🧛♀️Atoshi Sarker Prithula
: The two most special ladies of my life. I can't thank them
enough for always treasuring me a lot. I am lucky that I met with these two amazing ladies. They have two special
places in my heart and no other girl can ever replace them.My Father & Mother
: The greatest treasures of my life ever.