Registry / serialization / binrw
library0.15.1rscratesunverified

A Rust crate for helping read structs from binary data using macro magic.

# Cargo.toml [dependencies] binrw = "0.15.1"
INSTALL
IMPORT
SIG · BINRW
B
binrw
serializationrustv0.15.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.

BinRead
use binrw::BinRead;

Reads a struct from binary data using BinRead derive.

use binrw::BinRead; #[derive(BinRead)] #[br(little)] struct Point { x: i32, y: i32, } let point = Point::read(&mut std::io::Cursor::new(b"\x01\x00\x00\x00\x02\x00\x00\x00")).unwrap(); assert_eq!(point.x, 1); assert_eq!(point.y, 2);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.15.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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