Registry / serialization / cs-serde-bytes

cs-serde-bytes

JSON →
library0.12.2rscratesunverified

Optimized handling of `&[u8]` and `Vec<u8>` for Serde

# Cargo.toml [dependencies] cs_serde_bytes = "0.12.2"
INSTALL
IMPORT
SIG · CS-SERDE-BYTES
C
cs-serde-bytes
serializationrustv0.12.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.

Bytes
use cs_serde_bytes::Bytes;

Serializes/deserializes byte slices efficiently with Serde.

use cs_serde_bytes::Bytes; use serde::{Serialize, Deserialize}; #[derive(Serialize, Deserialize)] struct Data { #[serde(with = "Bytes")] bytes: Vec<u8>, } fn main() { let data = Data { bytes: vec![1, 2, 3] }; println!("Data created"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
cs-serde-bytes — cargo add cs-serde-bytes · libregistry