Registry / serialization / borsh
library1.6.1rscratesunverified

Binary Object Representation Serializer for Hashing.

# Cargo.toml [dependencies] borsh = "1.6.1"
INSTALL
IMPORT
SIG · BORSH
B
borsh
serializationrustv1.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BorshSerialize
use borsh::{BorshSerialize, BorshDeserialize};

Serialize a struct to binary format

use borsh::{BorshSerialize, BorshDeserialize}; #[derive(BorshSerialize, BorshDeserialize)] struct MyStruct { x: u32, y: String, } let s = MyStruct { x: 42, y: "hello".into() }; let bytes = s.try_to_vec().unwrap();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
borsh — cargo add borsh · libregistry