forked from anza-xyz/agave
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removes serde::Serialize trait bound from Packet::{from_data,populate…
…_packet} (anza-xyz#3636) As part of anza-xyz#3575 we need to implement bincode (de)serialization without deriving serde Serialize/Deserialize traits. Packet::{from_data,populate_packet} methods also only require that the data to be bincode serializable and do not care about serde either. Next version of bincode provides the necessary traits to achieve this functionality: https://docs.rs/bincode/2.0.0-rc.3/bincode/enc/trait.Encode.html but that is not released yet. In order to avoid serde::Serialize trait bound on Packet::{from_data,populate_packet}, the commit adds a new Encode trait which only requires implementing bincode serialization.
- Loading branch information
1 parent
c2880bb
commit d131c2b
Showing
2 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters