Registry / serialization / bytecheck

bytecheck

JSON →
library0.8.2rscratesunverified

Memory validation framework for Rust that verifies the safety of byte slices before deserialization.

# Cargo.toml [dependencies] bytecheck = "0.8.2"
INSTALL
IMPORT
SIG · BYTECHECK
B
bytecheck
serializationrustv0.8.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.

CheckBytes
use bytecheck::CheckBytes;

Validates memory layout of a byte slice using CheckBytes derive.

use bytecheck::CheckBytes; #[derive(CheckBytes)] struct MyStruct { value: u32, } fn main() { let bytes = &[0u8; 4]; let result = unsafe { MyStruct::check_bytes(bytes.into()) }; println!("{:?}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
bytecheck — cargo add bytecheck · libregistry