The `try_to_vec` method was removed in [borsh v1.0](https://github.com/near/borsh-rs/blob/master/CHANGELOG.md#100-alpha6---2023-10-02)