3 releases (stable)

new 2.0.0 Dec 27, 2024
1.0.0 Mar 22, 2024
0.1.1 Feb 15, 2024

#14 in #stratum

Download history 44/week @ 2024-09-05 43/week @ 2024-09-12 85/week @ 2024-09-19 54/week @ 2024-09-26 30/week @ 2024-10-03 32/week @ 2024-10-10 85/week @ 2024-10-17 35/week @ 2024-10-24 50/week @ 2024-10-31 22/week @ 2024-11-07 24/week @ 2024-11-14 39/week @ 2024-11-21 33/week @ 2024-11-28 48/week @ 2024-12-05 62/week @ 2024-12-12 23/week @ 2024-12-19

178 downloads per month
Used in 7 crates (via roles_logic_sv2)

MIT/Apache

150KB
2.5K SLoC

mining_sv2

crates.io docs.rs rustc+ license codecov

mining_sv2 is a Rust #![no_std] crate that implements a set of messages defined in the Mining protocol of Stratum V2. The Mining protocol enables:

  • distribution of work to mining devices
  • submission of proof of work from mining devices
  • notification of custom work to pool (in conjunction with Job Declaration Subprotocol)

For further information about the messages, please refer to Stratum V2 documentation - Mining.

Build Options

This crate can be built with the following features:

  • with_serde: Enables support for serialization and deserialization using Serde.

Note that with_serde feature flag is only used for the Message Generator, and deprecated for any other kind of usage. It will likely be fully deprecated in the future.

Usage

To include this crate in your project, run:

$ cargo add mining_sv2

Dependencies

~305–760KB
~13K SLoC