5 releases

new 0.5.1 Mar 4, 2026
0.5.0 Mar 3, 2026
0.4.3 Feb 27, 2026
0.4.2 Feb 24, 2026
0.4.1 Feb 22, 2026

#274 in Graphics APIs


Used in uhash-cli

Unlicense

340KB
7.5K SLoC

Rust 7K SLoC // 0.0% comments WebGPU Shader Language 519 SLoC // 0.1% comments OpenCL 402 SLoC

UniversalHash solver backends (CPU/GPU).

The Solver trait provides a backend-agnostic interface for proof-of-work computation. Enable feature flags to select backends:

  • cpu (default) — multi-threaded CPU solver
  • gpu-cuda — NVIDIA CUDA solver
  • gpu-metal — Apple Metal solver (macOS only)
  • gpu-opencl — OpenCL solver (AMD/Intel/Apple GPUs)
  • gpu-wgpu — WGPU solver (cross-platform via WebGPU)

Dependencies

~3–28MB
~513K SLoC