| Crates.io | dev_utils |
| lib.rs | dev_utils |
| version | 0.1.4 |
| created_at | 2023-10-22 16:27:02.728193+00 |
| updated_at | 2025-06-01 06:08:38.98446+00 |
| description | A collection of utilities for development |
| homepage | |
| repository | https://github.com/Yrrrrrf/dev_utils |
| max_upload_size | |
| id | 1010656 |
| size | 103,379 |
Dev Utils is a comprehensive Rust workspace providing a collection of utility crates designed to streamline common development tasks and enhance productivity. Whether you're building CLIs, scripts, or larger applications, Dev Utils offers a robust toolkit for logging, file manipulation, data formatting, and more.
This project aims to provide well-tested, ergonomic, and practical tools, born out of real-world development needs and a desire to explore Rust's capabilities.
dlog): A flexible logging system with multiple levels, colored output, and customizable formatting, distinct from but inspired by the log crate.file): Simplified CRUD operations, directory listing, recursive copying, and file finding capabilities.format): Easy-to-use text coloring (RGB) and styling (bold, italic, etc.) for rich terminal output.base_change): Convert numbers between various bases (2-62), supporting integers and fractional parts.datetime): Structs and methods for date/time representation, timestamp conversion, and parsing.app_dt!): Quickly display your crate's Cargo.toml information (name, version, custom fields) in your application, great for CLIs.dev_macros): (Work in Progress) A dedicated crate for custom procedural macros to reduce boilerplate and add powerful compile-time functionalities.Add dev_utils to your Cargo.toml dependencies:
[dependencies]
dev_utils = "0.1.1" # Replace with the latest version
Here's a glimpse of what you can do with dev_utils:
use dev_utils::app_dt;
fn main() {
// * Display application information from Cargo.toml
app_dt!(file!()); // This macro clears the screen and prints.
app_dt!(file!(), "package" => ["license", "description"]); // Or select specific fields:
}
Detailed examples showcasing various features of dev_utils can be found in the dev_utils/examples/ directory. Each example is designed to be run directly and demonstrates specific functionalities.
To run an example (e.g., main_tester from within the yrrrrrrf-dev_utils root directory):
cargo run --package dev_utils --example main_tester # from the root of the workspace
cargo run --example main_tester # from within the dev_utils directory
We welcome contributions to the Dev Utils Project! If you'd like to contribute, please:
git checkout -b feature/your-feature-name).git push origin feature/your-feature-name).Please ensure your code adheres to the existing style, includes appropriate tests, and is well-documented.
dev_macros for common boilerplate reduction (e.g., smart constructors).file utilities with more advanced features (e.g., watching file changes).This project is licensed under the MIT License - see the LICENSE file for details.