Crate borsh

source ·
Expand description

Crate features

Ecosystem features

  • std - When enabled, this will cause borsh to use the standard library. Currently, disabling this feature will result in building the crate in no_std environment.

Default features

  • std - enabled by default.

Other features

Config aliases

  • hash_collections - This is a feature alias, set up in build.rs to be equivalent to (std OR hashbrown). Gates implementation of BorshSerialize, BorshDeserialize and BorshSchema for HashMap/HashSet.
  • derive_schema - This is a feature alias, set up in build.rs to be equivalent to (derive AND schema).

Re-exports

Modules

  • Module is available if borsh is built with features = ["derive", "schema"].
  • Module is available if borsh is built with features = ["derive", "schema"].

Functions

  • Serialize an object into a vector of bytes.
  • Serializes an object directly into a Writer.

Derive Macros

  • Derive macro available if borsh is built with features = ["derive"].
  • Derive macro available if borsh is built with features = ["derive", "schema"].
  • Derive macro available if borsh is built with features = ["derive"].