Cargo Features

[dependencies]
serde_ipld_dagcbor = { version = "0.6.1", default-features = false, features = ["std", "codec", "no-cid-as-bytes"] }
default = codec, std

These default features are set whenever serde_ipld_dagcbor is added without default-features = false somewhere in the dependency tree.

std default

Enables use_std of cbor4ii ^0.2.14 and std of ipld-core, serde, and serde_bytes

ipld-core:

Makes the error implement std::error::Error and the Codec trait available.

Affects de::from_reader, ser::to_writer, serde_ipld_dagcbor::codec

codec default

Enable the Codec trait implementation. It's a separate feature as it needs Rust >= 1.75.

Enables codec of ipld-core

Affects serde_ipld_dagcbor::codec

no-cid-as-bytes

Prevent deserializing CIDs as bytes as much as possible.