Closed rconan closed 3 years ago
I found out that if I Deserialize in 2 steps
let v: serde_pickle::Value = serde_pickle::from_reader(file).unwrap();
let d: Message = serde_pickle::from_value(v).unwrap();
println!("{:#?}", d);
there are no errors
Thanks for the report! I could reproduce the bug and found that the cause is a MemoRef in the pickle. I'll need to resolve that...
This should be fixed now. I'll release a bugfix version shortly.
I have the following:
that allows to Serialize and Deserialize
enum Message
. If I load the pickle file in Python, I got the following representationnow if I pickle the tuple in Python with:
and then Deserialize in Rust with
I got the following error:
Is it possible to Deserialize to a Rust enum from a Python pickled file?