Cargo Features
[dependencies]
serde_ipld_dagcbor = { version = "0.6.4", default-features = false, features = ["std", "codec", "no-cid-as-bytes"] }
- default = codec, std
-
These default features are set whenever
serde_ipld_dagcboris added withoutsomewhere in the dependency tree.default-features = false - std default
-
Enables use_std of cbor4ii ^0.2.14 and std of ipld-core
ipld-core:
Makes the error implement
std::error::Errorand theCodectrait available.and std of serde and serde_bytes
serde:
We need the RC feature to test a trait edge-case.
Affects
de::from_reader,de::from_reader_once,de::iter_from_reader,ser::to_writer,serde_ipld_dagcbor::codec… - codec default
-
Enable the
Codectrait implementation. It's a separate feature as it needs Rust >= 1.75.Affects
serde_ipld_dagcbor::codec… - no-cid-as-bytes
-
Prevent deserializing CIDs as bytes as much as possible.