You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
ipc-channel fails to decode when the type contains skip_serializing_if. I expect below to pass but it fails.
use serde::{Deserialize,Serialize};#[derive(Deserialize,Serialize)]#[derive(Clone,Copy,Debug,Eq,PartialEq)]pubstructFoo{#[serde(skip_serializing_if = "Option::is_none")]pubbar:Option<()>,}#[cfg(test)]mod tests {usesuper::*;fnfoo() -> Foo{Foo{bar:None,}}#[test]fnbincode_roundtrip(){let f = foo();let s = bincode::serialize(&f).unwrap();let new_f = bincode::deserialize(&s).unwrap();assert_eq!(f, new_f);}}
I didn't find any issue in bincode, but found serde-rs/serde#1732
Maybe it would be great this gets mentioned in usage documentation before there is a reasonable solution?