| Crates.io | derive_codec_sv2 |
| lib.rs | derive_codec_sv2 |
| version | 1.1.1 |
| created_at | 2021-06-14 16:55:57.124643+00 |
| updated_at | 2024-12-27 17:36:04.51344+00 |
| description | Derive macro for Sv2 binary format serializer and deserializer |
| homepage | https://stratumprotocol.org |
| repository | https://github.com/stratum-mining/stratum |
| max_upload_size | |
| id | 409998 |
| size | 30,685 |
derive-codec-sv2 is a no-std Rust crate offering procedural macros for automating serialization and deserialization of structs used within the Sv2 (Stratum V2) protocol. This crate provides Encodable and Decodable macros to streamline binary data handling, especially useful for protocol-level implementations where efficient encoding and decoding are essential.
#[already_sized] attribute for marking fixed-size structs, enabling optimizations in binary handling.GetSize trait, helpful for dynamic protocol message framing.To include this crate in your project, run:
cargo add derive-codec-sv2