Registry / serialization / bitcode

bitcode

JSON →
library0.6.9rscratesunverified

bitcode is a bitwise binary serializer

# Cargo.toml [dependencies] bitcode = "0.6.9"
INSTALL
IMPORT
SIG · BITCODE
B
bitcode
serializationrustv0.6.9
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.

Encode
use bitcode::Encode;

Encodes and decodes a struct using bitcode's bitwise serialization

use bitcode::{Encode, Decode}; #[derive(Encode, Decode)] struct Point { x: i32, y: i32 } fn main() { let point = Point { x: 1, y: 2 }; let encoded = bitcode::encode(&point); let decoded: Point = bitcode::decode(&encoded).unwrap(); assert_eq!(decoded.x, 1); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
bitcode — cargo add bitcode · libregistry