| Crates.io | toolcraft-utils |
| lib.rs | toolcraft-utils |
| version | 0.2.0 |
| created_at | 2025-08-06 06:40:01.518568+00 |
| updated_at | 2025-08-06 06:40:01.518568+00 |
| description | Common utilities for toolcraft ecosystem |
| homepage | |
| repository | https://github.com/code-serenade/toolcraft.git |
| max_upload_size | |
| id | 1783469 |
| size | 25,130 |
Common utilities and helper functions for the toolcraft ecosystem.
Add this to your Cargo.toml:
[dependencies]
toolcraft-utils = "*"
Check the crates.io page for the latest version.
use toolcraft_utils::*;
fn main() {
// Utility functions will be available here
// This is a placeholder for future utilities
}
This crate is currently in early development. Planned utilities include:
This crate is in early development and we welcome contributions! If you have ideas for useful utilities that would benefit the toolcraft ecosystem, please feel free to:
When adding new utilities, please ensure:
// String utilities
use toolcraft_utils::string::{to_snake_case, to_camel_case};
let snake = to_snake_case("HelloWorld"); // "hello_world"
let camel = to_camel_case("hello_world"); // "helloWorld"
// File utilities
use toolcraft_utils::fs::{ensure_dir, read_json};
ensure_dir("./config")?;
let config: MyConfig = read_json("./config/app.json")?;
// Time utilities
use toolcraft_utils::time::{format_duration, parse_duration};
let duration = parse_duration("1h 30m")?;
let formatted = format_duration(duration); // "1 hour 30 minutes"
// Validation utilities
use toolcraft_utils::validate::{is_valid_email, is_valid_url};
if is_valid_email("user@example.com") {
// Process email
}
This project is licensed under the MIT License - see the LICENSE file for details.