Registry / serialization / binary-layout

binary-layout

JSON →
library4.0.2rscratesunverified

Type-safe, inplace, zero-copy access to structured binary data.

# Cargo.toml [dependencies] binary-layout = "4.0.2"
INSTALL
IMPORT
SIG · BINARY-LAYOUT
B
binary-layout
serializationrustv4.0.2
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.

BinaryLayout
use binary_layout::BinaryLayout;

Creates a BinaryLayout from a byte slice for zero-copy field access.

use binary_layout::BinaryLayout; fn main() { let data = vec![0u8; 64]; let layout = BinaryLayout::new(&data); // Access fields without copying }
Debug
Known issues
gotchaMisaligned data can cause undefined behavior on some architectures.
fix
Ensure data is properly aligned or use unaligned access methods.
affects: >=1.0.0
Upgrade
Version history
4.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
10
Meta
1
Amazon
1
OpenAI (training)
1
Resources
binary-layout — cargo add binary-layout · libregistry