9 releases (4 stable)

new 2.0.0 Dec 27, 2024
1.0.2 Aug 9, 2024
1.0.0 Mar 22, 2024
0.1.6 Feb 15, 2024
0.1.0 Jun 14, 2021

#12 in #stratum

Download history 30/week @ 2024-09-05 56/week @ 2024-09-12 86/week @ 2024-09-19 67/week @ 2024-09-26 35/week @ 2024-10-03 21/week @ 2024-10-10 68/week @ 2024-10-17 23/week @ 2024-10-24 33/week @ 2024-10-31 11/week @ 2024-11-07 19/week @ 2024-11-14 32/week @ 2024-11-21 24/week @ 2024-11-28 59/week @ 2024-12-05 65/week @ 2024-12-12 10/week @ 2024-12-19

168 downloads per month
Used in 8 crates (2 directly)

MIT/Apache

86KB
1.5K SLoC

template_distribution_sv2

crates.io docs.rs rustc+ license codecov

template_distribution_sv2 is a Rust #![no_std] crate that implements a set of messages defined in the Template Distribution Protocol of Stratum V2. The Template Distribution protocol can be used to receive updates of the block templates to use in mining.

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

Build Options

This crate can be built with the following features:

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

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 template_distribution_sv2

Dependencies

~0.3–1MB
~16K SLoC