borsh-rs
borsh-rs copied to clipboard
Rust implementation of Binary Object Representation Serializer for Hashing
structs were fixed in https://github.com/near/borsh-rs/commit/985a20b0289b034a53fe6b2e3c799349d8cbd95f but this was not done for enums. cc @BenKurrek
This is a follow-up to #83. closes #84
Add derive macro attribute like [serde container's `crate` attr](https://serde.rs/container-attrs.html#crate) ([test](https://github.com/serde-rs/serde/blob/1fcda0ebdb2cfa050df42fded93ba07c14e4b683/test_suite/tests/test_serde_path.rs)): 1. To be able to work with byte blobs built with legacy borsh. 1. To be able to use re-exported...
I need it for our new version of Indexer https://github.com/telezhnaya/near-lake-flows-into-sql-base
# Problem ```rust #[derive(BorshSerialize, BorshDeserialize)] enum A { B, C { d: Vec, }, } ``` gives `overflow evaluating the requirement A: BorshDeserialize` or BorshSerialize # Idea Allow skipping adding...
It would be nice to be able to (de)serialize `BorshSchemaContainer` into something human-readable. For some context, we must somehow represent a contract's borsh-serializable types in the ABI schema file. Since...
# Original issue (conflicting names of enum variants with outer structs) The following code fails to compile because the schema name generation for enum variants can produce name clashes. ```rust...
Was asked the question of why this deserialization didn't work and I always assumed it was because of an incompatible interface or to minimize code size, but after playing with...
Not sure this is the best place to have this conversation so feel free to close the issue! I've been working on reducing (compiled) code size for an API that...