Closed mikhailOK closed 3 years ago
Since there is no trait specialization available in stable Rust we should only implement serializer/deserializer for standard types. So the solution to this issue is to remove serialization of non-primitive arrays and add serializers for primitive arrays.
We should also further investigate how bincode and serder address this issue. Assigning to @fckt
Do you guys have a sample of deserializing an array of some type?
Any update on this?
Hah, just read the code and found that it was actually implemented with 0.9.1 release... i.e. 6 days ago!
just had to update my cargo.toml dependency to:
borsh = { version = "0.9.1", features = ["const-generics"] }
and now things work ❤️
So looks like this can be closed
After #33 borsh can serialize fixed sized arrays of any type, but deserialize only byte arrays. That's inconsistent