import pickle
d=123238476387643857365837465
#d=1234
with open('data.pickle', 'wb') as f:
pickle.dump(d, f, pickle.HIGHEST_PROTOCOL)
And then try to parse it with serde-pickle:
fn main()
{
let mut m = std::io::BufReader::new(std::fs::File::open("data.pickle").unwrap());
let v: serde_pickle::value::Value = serde_pickle::from_reader(
&mut m, std::default::Default::default()
).unwrap();
dbg!(v);
}
It cannot be loaded:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Syntax(InvalidValue("integer too large"))', src/main.rs:7:5
If I pickle a bigint in python:
And then try to parse it with serde-pickle:
It cannot be loaded: