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.