Cargo Features
[dependencies]
cid = { version = "0.11.0", default-features = false, features = ["std", "alloc", "arb", "scale-codec", "serde-codec", "serde"] }
- default = std
-
The
std
feature is set by default whenevercid
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
-
Enables alloc of core2, std of multihash and unsigned-varint
- alloc serde? std
- arb
-
Enables arbitrary, arb of multihash, quickcheck and rand
- scale-codec
-
Enables scale-codec of multihash, parity-scale-codec
- serde-codec = serde
-
Deprecated, don't use.
Affects
cid::serde
… - serde serde-codec? = alloc
-
Enables serde of multihash, serde and serde_bytes