Crate dev_utils

Source
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

§Usage

use dev_utils::app_dt;
 
app_dt!(file!());  // Print package name and version from Cargo.toml
app_dt!(file!(),  // Print package name, version, license, and keywords
    "package" => ["license", "keywords"]  // selected sections and keys
);

Modules§

base_change
Base conversion module for arbitrary-precision numbers.
datetime
A module for working with dates, times, and timestamps.
dlog
A flexible and customizable logging module for Rust applications.
file
This module provides advanced functions for file and directory operations.
format
A module for text formatting and styling in terminal applications.
helpers
Module containing helper functions for the print_app_data macro

Macros§

__dlog_internal
app_dt
debug
error
info
trace
warn

Functions§

__delay_ms
Delays the program execution for the specified number of milliseconds.
read_input
Reads input from the console, optionally displaying a prompt message.