#utilities #dev #development #ansi-colors

dev_utils

A collection of utilities for development

15 releases

0.1.1 Dec 26, 2024
0.1.1-rc-1 Oct 7, 2024
0.1.0 Oct 22, 2023
0.0.15 Oct 7, 2024
0.0.6 Oct 29, 2023

#127 in Science

Download history 6/week @ 2024-09-18 7/week @ 2024-09-25 394/week @ 2024-10-02 123/week @ 2024-10-09 15/week @ 2024-10-16 9/week @ 2024-10-30 13/week @ 2024-11-06 3/week @ 2024-11-27 38/week @ 2024-12-04 24/week @ 2024-12-11 7/week @ 2024-12-18 138/week @ 2024-12-25 23/week @ 2025-01-01

205 downloads per month
Used in logic_tracer

MIT license

74KB
1K SLoC

Dev Utils

github crates.io docs.rs

dev_utils is a collection of utilities for use in development. Designed to be a comprehensive crate, containing a wide variety of tools for use in development. Intended to be used as a dependency in other projects, and as such, it is designed to be as modular as possible, allowing users to only include the features they need.

Features

  • dlog - dev log instance different from the log crate but same macros
  • datetime - UNIX timestamp, and date and time utilities
  • base_change - Convert between bases (any base to any base)
    • fix some bugs (when using FixedPoint | Decimals)
  • formatting - Styling traits for formatting data (ANSI colors, bold, italic, underline, etc.)
  • file - Some file manipulation utilities (crud, list, copy, move, rename)

Getting Started

To use this crate, add the following to your Cargo.toml file:

[dependencies]
dev_utils = "0.1.1"

Usage

use dev_utils::app_dt;

fn main() {
    app_dt!(file!());  // Print package name and version from Cargo.toml
    // this will flush the buffer and print the package name and version

    // some new logic w/ a clean slate
}

No runtime deps