The JG Rust Collection. Libraries, modules, and tools built for performance-critical systems. All projects follow REPS (Rust Efficiency & Performance Standards) — zero-cost abstractions, minimal allocations, lock-free where possible.
Reusable library crates. Import as dependencies.
| Crate | Description |
|---|---|
| metrics-lib | Lock-free metrics. 0.6ns gauges, 18ns counters, timers, rate meters, adaptive sampling, system health. |
| error-forge | Structured error framework. Typed errors with macros, contextual metadata, severities, recovery helpers. |
| rust-benchmark | Benchmarking library. Dev mode profiling, prod mode monitoring with <10ns overhead, regression alerts. |
| network-protocol | Protocol layer for local, remote, and cluster communication. Built for databases, daemons, real-time systems. |
Standalone daemon and service frameworks.
| Crate | Description |
|---|---|
| proc-daemon | Cross-platform daemon framework. Async-native, graceful shutdown, production-grade service lifecycle. |
Modular components and frameworks.
| Crate | Description |
|---|---|
| mod-cli | CLI framework. Modular command parsing, customizable output, built for speed and control. |
Every project in this collection is built to REPS. The standard defines expectations for:
- Zero-cost abstractions — no runtime overhead for type safety or API design
- Minimal allocations — stack-first, pool when needed, heap as last resort
- Lock-free concurrency — atomics over mutexes on hot paths
- Predictable latency — no hidden GC pauses, no unbounded allocations
- Minimal dependencies — fewer deps = fewer supply chain risks, faster builds
- Benchmarked claims — if you say it's fast, prove it with numbers
Full REPS documentation: GUIDELINES.md
James Gober — github.com/jamesgober