Registry / serialization / bcs
library0.2.1rscratesunverified

Binary Canonical Serialization (BCS) for Rust.

# Cargo.toml [dependencies] bcs = "0.2.1"
INSTALL
IMPORT
SIG · BCS
B
bcs
serializationrustv0.2.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.

to_bytes
use bcs::to_bytes;

Serializes an integer to BCS bytes.

use bcs::to_bytes; fn main() -> Result<(), bcs::Error> { let bytes = to_bytes(&42u32)?; println!("{:?}", bytes); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.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
bcs — cargo add bcs · libregistry