Skip to content

Commit

Permalink
src: message: Use serde_bytes to speedup payload serialization/deseri…
Browse files Browse the repository at this point in the history
…alization
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Oct 4, 2024
1 parent 58b7aa3 commit 6d66765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub struct ProtocolMessage {
pub message_id: u16,
pub src_device_id: u8,
pub dst_device_id: u8,
#[serde(with = "serde_bytes")]
pub payload: Vec<u8>,
pub checksum: u16,
}
Expand Down

0 comments on commit 6d66765

Please sign in to comment.