Closed vedantroy closed 2 years ago
@vedantroy Use const-generics
feature of borsh (just for the reference: https://github.com/near/borsh/issues/36#issuecomment-882934079)
@vedantroy BTW (unrelated to borsh), beware that such big arrays might cause various issues when you pass them around using stack. Consider storing that on a heap. https://stackoverflow.com/a/68122278/1178806
I'm trying to use Borsh to deserialize a large array.
I've added the following crate attribute:
And I'm getting the error:
Is there any way to get around this?