Expand description
A collection of utility functions for common development tasks, including logging, terminal manipulation, file handling, and more.
[dependencies]
dev_utils = "0.*" # Add the latest version of this crate
log = "0.*" # This crate also depends on the log crate, so add it too§Usage
use dev_utils::log::print_app_data;
use dev_utils::log::rlog::RLog; // Logger (RLog) from this crate
use log::LevelFilter; // Log crate
fn main() {
print_app_data(file!()); // Print application data (name, version, authors, etc.)
RLog::init_logger(LevelFilter::Trace); // Initialize the logger with the given log level
log::info!("Some data!"); // [2021-01-01 00:00:00] INFO: Hello World!
// Your code here...
}Modules§
- Some conversion utilities.
- This module provides functions for performing CRUD (Create, Read, Update, Delete) operations on files.
- Module containing helper functions for the print_app_data macro
Macros§
Functions§
- This ask() function is still a prototype, so it could not work as expected.