uhash/lib.rs
1//! UniversalHash local compute library exports.
2//!
3//! This crate exposes the core hash engine and optional GPU prover backends
4//! used by the `uhash` CLI.
5
6pub mod wallet;
7
8// Re-export the core algorithm
9pub use uhash_core as algorithm;
10
11#[cfg(feature = "cuda-backend")]
12pub use uhash_prover::cuda_miner;
13#[cfg(all(feature = "metal-backend", target_os = "macos"))]
14pub use uhash_prover::metal_miner;
15#[cfg(feature = "gpu-opencl")]
16pub use uhash_prover::opencl_solver;
17#[cfg(feature = "gpu-wgpu")]
18pub use uhash_prover::wgpu_solver;
19
20// Convenience re-exports
21pub use algorithm::{hash, meets_difficulty, UniversalHash};
22
23// Solver trait re-export
24pub use uhash_prover::Solver;