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;
 
fn main() {
    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 conversion module for arbitrary-precision numbers.
  • A module for working with dates, times, and timestamps.
  • A flexible and customizable logging module for Rust applications.
  • This module provides advanced functions for file and directory operations.
  • A module for text formatting and styling in terminal applications.
  • Module containing helper functions for the print_app_data macro

Macros§

Functions§

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