Small, dependable Rust crates for problems worth solving twice.
rust-utils is a collection of focused, reusable Rust libraries. Each crate has one responsibility, a standalone public API, and an independent version/release lifecycle.
| Package | Purpose |
|---|---|
| rsutil-artifact | SHA-256, Ed25519, and SemVer verification |
| rsutil-bytes | Bounded binary reads, byte formatting, and exact SI/IEC parsing |
| rsutil-runner | Controlled child-process execution with bounded output readers |
| rsutil-config | Environment parsing, compound duration parsing, and validation |
| rsutil-clip | Cross-platform text clipboard |
| rsutil-fs | Atomic writes, bounded reads, path validation |
| rsutil-lock | Cross-process advisory locks |
| rsutil-redact | Secret wrappers and overlapping-match-safe redaction |
| rsutil-retry | Retry policies, backoff, jitter, deadlines |
| rsutil-shutdown | Cooperative shutdown |
| rsutil-system | OS, host, CPU, and memory snapshots |
Rust 1.95 or newer and Cargo are required. Clipboard use also needs a live desktop session and native clipboard backend.
git clone https://github.com/Vider06/rust-utils.git
cd rust-utils
cargo test --workspace --all-targets --all-featuresAdd only the package you need:
[dependencies]
rsutil-bytes = "0.2"Each crate README documents its exact public API, examples, errors, recovery guidance, and limitations.
Read CONTRIBUTING.md before contributing. See accessibility, development and CI, architecture, crate guidelines, crate catalogue, release policy, roadmap, and changelog.
Report vulnerabilities privately as described in SECURITY.md. Licensed under Apache-2.0.