stratum-mining / stratum

stratum
https://stratumprotocol.org
Other
204 stars 121 forks source link

Rust Docs + refactor: `protocols` crates #845

Open plebhash opened 4 months ago

plebhash commented 4 months ago

We recently published our protocols crates to crates.io. We need to make sure the APIs provided by those crates are properly documented under the Rust Best Practices.

This is also the perfect opportunity to map and address technical debt on those crates. As we go through the code and try to understand it, we take the chance to write down a list of ways the code could be improved. Things such as:


Task list

Rust Docs

Refactor Implementation

rrybarczyk commented 1 month ago

We can leverage the work done in #854 in this effort when we start listing the technical debt for each crate.

jbesraa commented 1 day ago

What do you think about merging all the v2/binary-sv2/** into a single v2/binary-sv2 for the following reason https://github.com/stratum-mining/stratum/issues/1134#issuecomment-2333691340 ?

Fi3 commented 1 day ago

I don't think that this is a good idea as we wouldn't be able to opt out serde anymore

jbesraa commented 1 day ago

Oh sorry maybe my comment was not clear. I was just suggesting to merge them in terms of the effort to document and refactor them, not merge the crates into a single one.