| Crates.io | alumy |
| lib.rs | alumy |
| version | 0.1.12 |
| created_at | 2026-01-07 06:19:34.445029+00 |
| updated_at | 2026-01-15 02:13:39.77595+00 |
| description | A batteries-included Rust SDK for rapid application development. Logging, system utilities, and filesystem helpers — all ready to use. |
| homepage | https://github.com/alumy/alumy-rs |
| repository | https://github.com/alumy/alumy-rs |
| max_upload_size | |
| id | 2027609 |
| size | 51,767 |
A batteries-included Rust SDK for rapid application development. Logging, system utilities, and filesystem helpers — all ready to use.
tracing with fluent configuration API, log rotation, and system uptime timestamps. Works across platforms.Add this to your Cargo.toml:
[dependencies]
alumy = "0.1.10"
anyhow = "1"
Alumy provides a modern, non-blocking logger based on tracing. It re-exports all logging macros (trace!, debug!, info!, warn!, error!) for convenience:
use alumy::{LogConfig, info, debug};
fn main() -> anyhow::Result<()> {
// Basic setup
LogConfig::new("my-app", "info").init()?;
// Advanced setup with log rotation and system uptime
LogConfig::new("my-app", "debug")
.with_file("logs/app.log", "10M", 5)
.with_time_format("uptime")
.with_ansi(true)
.with_target(true)
.init()?;
info!("Hello, alumy logger!");
debug!("Debug message");
Ok(())
}
Access system uptime information:
use alumy::sys::uptime;
fn main() {
println!("Uptime: {} seconds", uptime::uptime());
println!("Uptime duration: {:?}", uptime::uptime_duration());
}
Parse and format file sizes easily:
use alumy::fs::filesize;
fn main() {
let size = filesize::parse_size("10M").unwrap();
println!("10M in bytes: {}", size);
println!("Formatted: {}", filesize::format_size(size)); // "10.0MB"
}
Access crate metadata:
use alumy::version;
use alumy::{crate_name, crate_version};
fn main() {
println!("Running {} v{}", crate_name!(), crate_version!());
println!("{}", version::hello());
}
This project is licensed under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.