Registry / serialization / binwrite

binwrite

JSON →
library0.2.1rscratesunverified

Helps write structs as binary data using macro magic.

# Cargo.toml [dependencies] binwrite = "0.2.1"
INSTALL
IMPORT
SIG · BINWRITE
B
binwrite
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.

BinWrite
use binwrite::BinWrite;

Writes a struct to a binary buffer using the BinWrite derive macro.

use binwrite::BinWrite; #[derive(BinWrite)] struct Point { x: i32, y: i32, } fn main() { let point = Point { x: 1, y: 2 }; let mut buf = Vec::new(); point.write(&mut buf).unwrap(); println!("{:?}", buf); }
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
binwrite — cargo add binwrite · libregistry