| Crates.io | binary_sv2 |
| lib.rs | binary_sv2 |
| version | 5.0.1 |
| created_at | 2021-06-14 17:06:51.470627+00 |
| updated_at | 2026-01-22 13:36:06.428796+00 |
| description | Sv2 data format |
| homepage | https://stratumprotocol.org |
| repository | https://github.com/stratum-mining/stratum |
| max_upload_size | |
| id | 410003 |
| size | 156,197 |
binary-sv2 is a Rust no-std crate that helps encode and decode binary data into Stratum V2 messages
The crate supports the following mappings between Rust and SV2 types
| Rust Type | Sv2 Type |
|---|---|
bool |
BOOL |
u8 |
U8 |
u16 |
U16 |
U24 |
U24 |
u32 |
U32 |
u64 |
U64 |
f32 |
F32 |
Str0255 |
STRO_255 |
Signature |
SIGNATURE |
[u8] |
BYTES |
Seq0255 |
SEQ0_255[T] |
Seq064K |
SEQ0_64K[T] |
To include this crate in your project, run:
cargo add binary-sv2