near / borsh-rs

Rust implementation of Binary Object Representation Serializer for Hashing
https://borsh.io/
Apache License 2.0
299 stars 65 forks source link

fix: relax `schema_container_of` target requirement with `?Sized` to allow slices #245

Closed dj8yfo closed 10 months ago

dj8yfo commented 10 months ago

this blocks

#[near_bindgen]
impl Contract {
    pub fn foo(
        &self,
        #[serializer(borsh)]
        c: &[bool],
    ) {}
}

it has been tested in cargo-near#109 with

[patch.crates-io]
borsh = { git = 'https://github.com/near/borsh-rs.git', branch = "slice_schema_container" }

that this patch works