borsh-rs icon indicating copy to clipboard operation
borsh-rs copied to clipboard

Rust implementation of Binary Object Representation Serializer for Hashing

Results 49 borsh-rs issues
Sort by recently updated
recently updated
newest added

When implement borshSerialize on some wasmer cache object, there's some fields using `cranelift_entity::{PrimaryMap, SecondaryMap}` and `indexmap::IndexMap`, but they do not have BorshSerialize implemented, which make entire structs not derivable. We...

Minimal example: ``` #[derive(BorshSerialize, BorshDeserialize)] enum A { X, Y(Box), } ``` gives compilation error: ``` error[E0275]: overflow evaluating the requirement `Box: BorshSerialize` --> src/main.rs:3:10 | 3 | #[derive(BorshSerialize, BorshDeserialize)]...

Currently, changes can bump the MSRV without noticing. Would be good to have this documented and stable for #51. Noticed from #104 bumping MSRV without any failing CI

good first issue

total number of snapshots for `borsh` crate is equal to that in `master`: ```bash ❯ fd -e snap -X ls -1 | wc -l 175 ```

https://github.com/near/borsh-rs/blob/master/borsh/src/ser/mod.rs#L312-L318

https://github.com/near/borsh-rs/blob/master/borsh/src/ser/mod.rs#L296-L310

## 🤖 New release * `borsh`: 1.3.1 -> 1.4.0 (✓ API compatible changes) * `borsh-derive`: 1.3.1 -> 1.4.0 Changelog ## `borsh` ## [1.4.0](https://github.com/near/borsh-rs/compare/borsh-v1.3.1...borsh-v1.4.0) - 2024-02-29 ### Added - impl `BorshSchema`...

`src/main.rs`: ```rust #[repr(C, packed)] #[derive(borsh::BorshSerialize)] struct Foo(pub u64); fn main() { println!("Hello, world!"); } ``` `Cargo.toml`: ```toml [package] name = "borsh-repro" version = "0.1.0" edition = "2021" # See more...

Hi, I was wondering that if there is any plan for adding Async support to (de)serializer?

enhancement
help wanted

So far we don't want to release any more breaking changes, but let's keep track of potential breaking changes here. * [ ] https://github.com/near/borsh-rs/issues/270 * [ ] https://github.com/near/borsh-rs/issues/281 * [...

v2.0