Skip to content

About

A curated collection of small, focused, reusable Rust crates and utilities.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

rust-utils

Small, dependable Rust crates for problems worth solving twice.

CI Security License: Apache-2.0 Rust edition: 2024

rust-utils is a collection of focused, reusable Rust libraries. Each crate solves one clearly defined problem, exposes a small API, and can be used without depending on the rest of the workspace.

All packages use the short v06- namespace, are independently versioned, and can be released without publishing unrelated crates. Initial version: 0.1.0.

Crates

Package Purpose
v06-clip Cross-platform text clipboard access
v06-bytes Bounded binary reads, endian conversion, and byte formatting
v06-fs Atomic writes, bounded reads, and path validation
v06-runner Controlled child-process execution
v06-lock Cross-process advisory file locks
v06-system OS, host, CPU, and memory snapshots
v06-shutdown Cooperative graceful-shutdown signalling
v06-retry Retry policies, backoff, jitter, and deadlines
v06-config Environment parsing and configuration validation
v06-redact Registered-secret redaction
v06-artifact SHA-256, Ed25519 verification, and SemVer requirements

Design principles

  • Focused: one crate, one responsibility, one clear problem.
  • Composable: each package can be used independently.
  • Predictable: explicit errors, bounded operations, and documented platform behavior.
  • Safe by default: validate external input and avoid surprising side effects.
  • Tested: exercise public behavior, edge cases, and failure paths.
  • Documented: public APIs explain their contracts, limitations, and examples.

Requirements

  • Rust 1.95 or newer.
  • Cargo.
  • Platform-specific clipboard access requires a running desktop session and an available native clipboard backend.

Getting started

Clone the repository and inspect the workspace:

git clone https://github.com/Vider06/rust-utils.git
cd rust-utils
cargo metadata --no-deps --format-version 1
cargo test --workspace --all-targets --all-features

Add only the package you need to your own project. For example:

[dependencies]
v06-bytes = "0.1"

The crate-specific README files contain installation examples, API usage, and limitations.

Development

Read CONTRIBUTING.md before opening a change.

cargo fmt --all -- --check
cargo test --workspace --all-targets --all-features
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo doc --workspace --no-deps --all-features

See the development guide for the full workflow and CI behavior.

Documentation

Security

Do not report vulnerabilities in public issues. Read SECURITY.md.

License

Licensed under the Apache License, Version 2.0.

About

A curated collection of small, focused, reusable Rust crates and utilities.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages