Registry / serialization / libipld-cbor

libipld-cbor

JSON →
library0.16.0rscratesunverified

ipld cbor codec

# Cargo.toml [dependencies] libipld-cbor = "0.16.0"
INSTALL
IMPORT
SIG · LIBIPLD-CBOR
L
libipld-cbor
serializationrustv0.16.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.

DagCborCodec
use libipld_cbor::DagCborCodec;

Encode an IPLD value to CBOR

use libipld_cbor::DagCborCodec; use libipld::Ipld; fn main() -> Result<(), Box<dyn std::error::Error>> { let data = DagCborCodec.encode(&Ipld::String("hello".into()))?; println!("{:?}", data); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.16.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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