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

feat!: add `Definition::Primitive` #222

Closed dj8yfo closed 11 months ago

dj8yfo commented 11 months ago

this pr takes a step back and attempts to add definitions to all types, supported by BorshSchema, in order to allow remove comments like

    /// Zero-sized types should follow the convention of either providing a [Definition] or
    /// specifying `"nil"` as their [Declaration] for this method to work correctly.

from various methods