Dev Utils is a modular Rust workspace providing a collection of utility crates designed to streamline common development tasks. It features a high-performance logging system, arbitrary-precision base conversion, and more.
dev_utils(src/core): The core library containing all utility modules.dev_macros(src/macros): Procedural macros for boilerplate reduction.dev-cli(src/cli): Thedevbinary, a command-line interface for the toolkit.
Add to your Cargo.toml:
[dependencies]
dev_utils = "0.1.5"Install the dev binary globally:
cargo install --path src/cliA tracing-powered logging system with local time, millisecond precision, and leveled colors.
use dev_utils::{dlog, info, warn};
fn main() {
dlog::init(); // Initialize with local time
info!("Starting application...");
warn!("Low disk space detected");
}Use the dev command in your shell or scripts:
dev log info "Build successful"
dev log --no-time error "Deployment failed"use dev_utils::app_dt;
fn main() {
app_dt!(file!()); // Display project info from Cargo.toml
}Run the logging benchmark:
just bench 100000See docs/bench.md for more details.
This project is licensed under the MIT License - see the LICENSE file for details.