Registry / serialization / serde-ipld-dagcbor

serde-ipld-dagcbor

JSON →
library0.6.4rscratesunverified

IPLD DAG-CBOR support for Serde.

# Cargo.toml [dependencies] serde_ipld_dagcbor = "0.6.4"
INSTALL
IMPORT
SIG · SERDE-IPLD-DAGCBOR
S
serde-ipld-dagcbor
serializationrustv0.6.4
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_ipld_dagcbor::from_slice;

Deserializes DAG-CBOR bytes into a JSON value.

use serde_ipld_dagcbor::from_slice; fn main() { let data = vec![0x01]; let result: Result<serde_json::Value, _> = from_slice(&data); println!("{:?}", result); }
Debug
Known issues
gotchaRequires the `std` feature for full functionality.
fix
Add `features = ["std"]` to serde_ipld_dagcbor dependency in Cargo.toml.
affects: >=0.6.0
Upgrade
Version history
0.6.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
serde-ipld-dagcbor — cargo add serde-ipld-dagcbor · libregistry