Registry / serialization / serde-cbor-2

serde-cbor-2

JSON →
library0.13.0rscratesunverified

CBOR support for Serde.

# Cargo.toml [dependencies] serde_cbor_2 = "0.13.0"
INSTALL
IMPORT
SIG · SERDE-CBOR-2
S
serde-cbor-2
serializationrustv0.13.0
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.

from_slice
use serde_cbor_2::from_slice;

Deserializes CBOR data using Serde.

use serde_cbor_2::from_slice; fn main() { let data = vec![0x01, 0x02]; let value: serde_cbor_2::Value = from_slice(&data).unwrap(); println!("Decoded: {:?}", value); }
Debug
Known issues
gotchaThis crate is a fork; original serde_cbor may be preferred for compatibility.
fix
Check if serde_cbor meets your needs before switching.
affects: >=0.13.0
Upgrade
Version history
0.13.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
serde-cbor-2 — cargo add serde-cbor-2 · libregistry