#utilities #dev #development

dev_utils

A collection of utilities for development

12 releases

0.1.0 Oct 22, 2023
0.0.13 Mar 25, 2024
0.0.11 Dec 13, 2023
0.0.10 Nov 11, 2023
0.0.6 Oct 29, 2023

#5 in #utils

Download history 34/week @ 2023-12-25 5/week @ 2024-01-01 34/week @ 2024-02-19 9/week @ 2024-02-26 245/week @ 2024-03-25

245 downloads per month
Used in logic_tracer

MIT license

245KB
1.5K SLoC

Rust 1K SLoC // 0.2% comments Jupyter Notebooks 368 SLoC // 0.7% comments Python 274 SLoC // 0.6% comments

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.

It is a manifestation of a crate where we do not need a deep dependencies tree to use a single feature. This crate shouldn't be using any dependencies but for now, it uses the log crate for logging utilities.

Important Note: This crate is currently in active development, and as such, it is not advisable for widespread utilization at this time. There are numerous features still in the process of implementation, which need to be thoroughly tested before they can be considered production-ready.

Features

  • log
    • rlog - Log to stdout
    • record - Record logs to a file
    • log - Log struct for storing log data (to replace the log crate)
  • conversion
    • datetime - UNIX timestamp, and date and time utilities
    • base change - Convert between bases (any base to any base)
      • fix some bugs (when using decimals)
  • codex - Encode and decode data
    • base64 - Encode and decode base64 data
    • unicode - Encode and decode unicode data
    • gzip - Encode and decode gzip data
  • console
    • readline - Interactive readline (for use in a REPL (interactive shell))
    • ansi - ANSI escape codes for colors, styles, and cursor movement
      • ANSI escape codes for colors
      • ANSI escape codes for styles, and cursor movement
      • Interactive readline
  • crypto
    • hash - Hashing utilities (message digest)
    • cipher - Cipher utilities (encryption & decryption)
    • key - Key utilities (key generation)
  • files - Easy file manipulation utilities
    • crud - Create, read, update, and delete files
      • list - List files and directories in a directory
      • copy - Copy a file from one location to another
      • move - Move a file from one location to another
      • rename - Rename a file or directory
    • toml - Read & extract data from Cargo.toml files
    • serde - Serialize and deserialize data

Usage

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

[dependencies]
dev_utils = "0.*"  # Add the latest version of this crate
log = "0.4.*"  # It also depends on the log crate, so add that too

License

This project is licensed under the terms of the MIT license

Dependencies