Skip to content

Commit

Permalink
more info about limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Sep 29, 2024
1 parent af593d2 commit 484416c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ mod signed;
pub use signed::Signed;

/// Bincode-compatible serde implementations for consensus types.
///
/// `bincode` crate doesn't work well with optionally serializable serde fields, but some of the
/// consensus types require optional serialization for RPC compatibility. This module makes so that
/// all fields are serialized.
///
/// Read more: https://github.com/bincode-org/bincode/issues/326
#[cfg(all(feature = "serde", feature = "serde-bincode-compat"))]
pub mod serde_bincode_compat {
pub use super::{
Expand Down

0 comments on commit 484416c

Please sign in to comment.