Crates.io | best_skn_message |
lib.rs | best_skn_message |
version | 1.2.4 |
source | src |
created_at | 2024-05-13 17:15:47.48586 |
updated_at | 2024-08-17 17:27:33.404705 |
description | A Simple Message Library For Rust |
homepage | |
repository | https://github.com/skn437/skn-rust-message |
max_upload_size | |
id | 1238691 |
size | 11,682 |
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.80.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);
Tanjila Hasan Trina
: The long lost love of my life. The course of nature separated us from our paths and put us in separate places far away from each other. But no matter how separated we are right now, each and every moment of mine is only dedicated to you. We may not see each other in this lifetime as it seems but I will find you again in the next life. I just want to say: 世界は残酷だ それでも君を愛すよ
My Parents
: The greatest treasures of my life ever.
Copyright (C) 2024 SKN Shukhan
Licensed under the MIT License