roles_logic_sv2/lib.rs
1//! # Stratum V2 Roles-Logic Library
2//!
3//! roles_logic_sv2 provides the core logic and utilities for implementing roles in the Stratum V2
4//! (Sv2) protocol, such as miners, pools, and proxies. It abstracts message handling, channel
5//! management, job creation, and routing logic, enabling efficient and secure communication across
6//! upstream and downstream connections.
7//!
8//! ## Usage
9//!
10//! To include this crate in your project, run:
11//! ```bash
12//! $ cargo add roles_logic_sv2
13//! ```
14//!
15//! ## Build Options
16//!
17//! This crate can be built with the following features:
18//!
19//! - `prop_test`: Enables support for property testing in [`template_distribution_sv2`] crate.
20pub mod errors;
21pub mod handlers;
22pub mod utils;
23pub use errors::Error;